samples/sprues/_advanced_sprues.rb in squib-0.14.3.pre1 vs samples/sprues/_advanced_sprues.rb in squib-0.15.0
- old
+ new
@@ -1,6 +1,7 @@
-require 'squib'
+# require 'squib'
+require_relative '../../lib/squib'
# This is a more advanced example of Sprues
# (mostly so we can have a torturous regression test)
# - Uses a custom sprue
# - Weird rotations
@@ -12,13 +13,13 @@
cut_zone margin: '0.125in',
stroke_width: 2, stroke_color: :purple
circle x: width/2, y: height/2, radius: 20 # midpoint
- text str: (0..9).map{ |i| "Card #{i}\n\n" },
+ text str: (0..9).map{ |i| "Card! #{i}\n\n" },
font: 'Sans 32', align: :center, valign: :middle,
height: :deck, width: :deck
-
+
save_sheet sprue: 'my_sprues/weird_sprue.yml',
trim: '0.2in', trim_radius: '10pt',
prefix: "advanced_sprues_"
end