Sha256: 5ba660dd37351575fc6e982950836f60b183e51d26e0c91db0bafaa3694bb2f3

Contents?: true

Size: 653 Bytes

Versions: 21

Compression:

Stored size: 653 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 and trimmed'

  save_png prefix: 'portrait_', trim: 10, trim_radius: 15
end

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

  text str: 'This is landscape and trimmed', x: 15, y: 10

  save_png prefix: 'landscape_', rotate: :clockwise, trim: 25, trim_radius: 15
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
squib-0.10.0 samples/saves/_portrait_landscape.rb