Sha256: 00bb6a3ca6395d4deb04d42c33a0f48d815b57d69a1f30b147205346455bca52

Contents?: true

Size: 607 Bytes

Versions: 13

Compression:

Stored size: 607 Bytes

Contents

require 'squib'

# This sample uses a proof overlay from TheGameCrafter.com to check bleed
Squib::Deck.new(width: 825, height: 1125, cards: 1) do
  background color: :white
  rect x: 38, y: 38, width: 750, height: 1050, x_radius: 38, y_radius: 38
  rect x: 75, y: 75, width: 128, height: 128, x_radius: 25, y_radius: 25

  text str: 'Mastermind', x: 220, y: 78, font: 'Arial 18'
  text str: 3, x: 75, y: 85, width: 128, font: 'Arial 24', align: :center

  # TGC proof overlay (using alpha-transparency)
  png file: 'pokercard.png', x:0, y:0, alpha: 0.5

  save_png prefix: 'tgc_sample_'
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
squib-0.18.0 samples/proofs/_tgc_proofs.rb
squib-0.17.2 samples/proofs/_tgc_proofs.rb
squib-0.17.1 samples/proofs/_tgc_proofs.rb
squib-0.17.0 samples/proofs/_tgc_proofs.rb
squib-0.16.0 samples/proofs/_tgc_proofs.rb
squib-0.16.0.pre.preview2 samples/proofs/_tgc_proofs.rb
squib-0.16.0.pre.preview1 samples/proofs/_tgc_proofs.rb
squib-0.15.3 samples/proofs/_tgc_proofs.rb
squib-0.15.0 samples/proofs/_tgc_proofs.rb
squib-0.14.3.pre1 samples/proofs/_tgc_proofs.rb
squib-0.14.1 samples/proofs/_tgc_proofs.rb
squib-0.14.0 samples/proofs/_tgc_proofs.rb
squib-0.14.beta1 samples/proofs/_tgc_proofs.rb