new methods: safe_zone and cut_zone

This commit is contained in:
Andy Meneely
2017-10-05 23:36:53 -04:00
parent 9b3636cf6f
commit 2362e189d7
7 changed files with 164 additions and 1 deletions
+22
View File
@@ -0,0 +1,22 @@
require 'squib'
Squib::Deck.new do
background color: :white
safe_zone # defaults TheGameCrafter 0.25in around the edge, rounded corners
cut_zone # defaults TheGameCrafter 0.125in around the edge
text str: 'Poker card with proof lines', x: '0.25in', y: '0.25in'
save_png prefix: 'proof_poker_'
end
Squib::Deck.new(width:'2in', height: '1in')do
background color: :white
safe_zone stroke_color: :purple, margin: '0.1in'
safe_zone stroke_color: :purple, margin: '0.05in'
text str: 'Small card with proof lines', x: '0.1in', y: '0.1in',
font: 'Arial 10'
save_png prefix: 'proof_tiny_'
end
Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB