Sha256: 2b5f9d430528ad8c879d02b04586fee7747304bbe736f79d5c94204c6b15adc2

Contents?: true

Size: 555 Bytes

Versions: 1

Compression:

Stored size: 555 Bytes

Contents

require 'squib'

# For decks with both landscape and portrait orientations,
# we recommend using two separate decks. 
# For print-on-demand, we can rotate all of the images in the final step.

# Normal cards
Squib::Deck.new(width: 825, height: 1125) do 
  background color: '#aaa'

  text str: "This is portrait"

  save_png prefix: "portrait_"
end

# Money cards are landscape
Squib::Deck.new(width: 1125, height: 825) do
  background color: '#aaa'

  text str: "This is landscape"

  save_png prefix: "landscape_", rotate: true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
squib-0.0.4 samples/portrait-landscape.rb