Sha256: f4ca369eacae88a8f84bbf3d11cfb67694028a0036f57653f5ce5c8bbe24e222

Contents?: true

Size: 623 Bytes

Versions: 3

Compression:

Stored size: 623 Bytes

Contents

require 'squib'

Squib::Deck.new(width: '50mm', height: '70mm', cards: 9) do
  background color: :white
  rect stroke_width: 5, stroke_color: :red
  text str: (0..9).map{ |i| "Card! #{i}\n50x77mm" },
       font: 'Sans 32', align: :center, valign: :middle,
       height: :deck, width: :deck

  %w(
    a4_poker_card_8up.yml
    a4_euro_card.yml
    a4_poker_card_9up.yml
    a4_usa_card.yml
    letter_poker_card_9up.yml
    printplaygames_18up.yml
    drivethrucards_1up.yml
  ).each do |builtin|
    save_sheet sprue: builtin, prefix: "sprue_#{builtin}_"
    save_pdf sprue: builtin, file: "sprue_#{builtin}_"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
squib-0.19.0 samples/sprues/_builtin_sprues.rb
squib-0.19.0b samples/sprues/_builtin_sprues.rb
squib-0.19.0a samples/sprues/_builtin_sprues.rb