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.10.0 samples/bug134.rb