Sha256: c2f8e3f009afd4689ef5c749b49f2a7f76f114ebd3967cff252025c42a05d682

Contents?: true

Size: 630 Bytes

Versions: 6

Compression:

Stored size: 630 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

6 entries across 6 versions & 1 rubygems

Version Path
squib-0.19.0 samples/saves/_portrait_landscape.rb
squib-0.19.0b samples/saves/_portrait_landscape.rb
squib-0.19.0a samples/saves/_portrait_landscape.rb
squib-0.15.2 samples/saves/_portrait_landscape.rb
squib-0.15.1 samples/saves/_portrait_landscape.rb
squib-0.14.2 samples/saves/_portrait_landscape.rb