Sha256: 0cfdf953ed2953b0ff395e8728a9e5c3b1d1d490de585d102b693e0f4329c8c4
Contents?: true
Size: 840 Bytes
Versions: 3
Compression:
Stored size: 840 Bytes
Contents
require 'squib' # This is a more advanced example of Sprues # (mostly so we can have a torturous regression test) # - Uses a custom sprue # - Weird rotations # - Center-positioned # - Multiple pages Squib::Deck.new(cards: 6, width: '2.2in', height: '2.1in') do background color: :blue #blue never shows up! Yay clipping... rect stroke_width: 5, stroke_color: :red, fill_color: :salmon 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" }, 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
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
squib-0.14.3.pre1 | samples/sprues/_advanced_sprues.rb |
squib-0.14.1 | samples/sprues/_advanced_sprues.rb |
squib-0.14.0 | samples/sprues/_advanced_sprues.rb |