samples/portrait-landscape.rb in squib-0.0.4 vs samples/portrait-landscape.rb in squib-0.0.5
- old
+ new
@@ -1,23 +1,23 @@
require 'squib'
# For decks with both landscape and portrait orientations,
-# we recommend using two separate decks.
+# 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
+Squib::Deck.new(width: 825, height: 1125) do
background color: '#aaa'
- text str: "This is portrait"
+ text str: 'This is portrait'
- save_png prefix: "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"
+ text str: 'This is landscape'
- save_png prefix: "landscape_", rotate: true
-end
\ No newline at end of file
+ save_png prefix: 'landscape_', rotate: true
+end