Sha256: 489a9fa4b218ff5e1b0bd45f43985abbe30bd933cdb16ea2cd651e24c211d14e

Contents?: true

Size: 555 Bytes

Versions: 12

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

12 entries across 12 versions & 1 rubygems

Version Path
squib-0.9.0 samples/portrait-landscape.rb
squib-0.8.0 samples/portrait-landscape.rb
squib-0.7.0 samples/portrait-landscape.rb
squib-0.6.0 samples/portrait-landscape.rb
squib-0.5.1 samples/portrait-landscape.rb
squib-0.5.0 samples/portrait-landscape.rb
squib-0.4.0 samples/portrait-landscape.rb
squib-0.3.0 samples/portrait-landscape.rb
squib-0.2.0 samples/portrait-landscape.rb
squib-0.1.0 samples/portrait-landscape.rb
squib-0.0.6 samples/portrait-landscape.rb
squib-0.0.5 samples/portrait-landscape.rb