Sha256: ef4ccf3dd965853af82251c738582520995649e9484f7a412bb829a62e64dfe0

Contents?: true

Size: 531 Bytes

Versions: 21

Compression:

Stored size: 531 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

21 entries across 21 versions & 1 rubygems

Version Path
squib-0.18.0 samples/text/bug134.rb
squib-0.17.2 samples/text/bug134.rb
squib-0.17.1 samples/text/bug134.rb
squib-0.17.0 samples/text/bug134.rb
squib-0.16.0 samples/text/bug134.rb
squib-0.16.0.pre.preview2 samples/text/bug134.rb
squib-0.16.0.pre.preview1 samples/text/bug134.rb
squib-0.15.3 samples/text/bug134.rb
squib-0.15.0 samples/text/bug134.rb
squib-0.14.3.pre1 samples/text/bug134.rb
squib-0.14.1 samples/text/bug134.rb
squib-0.14.0 samples/text/bug134.rb
squib-0.14.beta1 samples/text/bug134.rb
squib-0.13.4 samples/text/bug134.rb
squib-0.13.3 samples/text/bug134.rb
squib-0.13.2 samples/text/bug134.rb
squib-0.13.1 samples/text/bug134.rb
squib-0.13.0 samples/text/bug134.rb
squib-0.12.0 samples/bug134.rb
squib-0.11.0 samples/bug134.rb