Sha256: 0c127069472f226e00cd8d39e0434b867ee17fcf0ab5d12b7d5dd48649168f55

Contents?: true

Size: 517 Bytes

Versions: 6

Compression:

Stored size: 517 Bytes

Contents

require 'squib'
require 'game_icons'

Squib::Deck.new(cards: 1) do
  rect
  text str: 'foo', x: 275, y: 75, width: 500, height: 500, valign: :middle, hint: :blue
  text(str: '(heart)(heart2)',
       x: 75, y: 75, width: 500, height: 500,
       valign: :middle, hint: :red) do |embed|
    embed.svg key: '(heart)', width: 50, height: 50, data: GameIcons.get('glass-heart').string
    embed.svg key: '(heart2)', width: 50, height: 50, data: GameIcons.get('glass-heart').string
  end
  save_png prefix: 'bug_134_'
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
squib-0.19.0 samples/text/bug134.rb
squib-0.19.0b samples/text/bug134.rb
squib-0.19.0a samples/text/bug134.rb
squib-0.15.2 samples/text/bug134.rb
squib-0.15.1 samples/text/bug134.rb
squib-0.14.2 samples/text/bug134.rb