Sha256: 997a4e38c851c8fe322fba67cbc823d593ce5bb89acf255b2452edb720865c04

Contents?: true

Size: 904 Bytes

Versions: 3

Compression:

Stored size: 904 Bytes

Contents

@session.configure do |c|
  c.svg_source = "template.svg"
  c.svg_merged_target = "merged-template.svg"

  c.png_export_width = 825

  c.pdf_dpi = 300
  c.pdf_card_size = "750x1050"

  c.individual_files_path = "svgout/output_%03d.svg"

  c.png_files_path = "pngout-svggvs/output_%03d.png"

  c.pdf_target = "pnp/game.pdf"
end

card_data = [
  {
    active_layers: [ 'Action', 'Puppy', 'Name', 'Background' ],
    replacements: { 'Name' => 'Woofie', 'Action' => 'Bark at the person who is ringing the doorbell.' }
  },
  {
    active_layers: [ 'Action', 'Kitten', 'Name', 'Background' ],
    replacements: { 'Name' => 'Hisshead', 'Action' => "Demand food by clawing at your owner's lap." }
  },
]

@session.process do
  card_data.each do |card|
    @session.with_new_target do |target|
      target.active_layers = card[:active_layers]
      target.replacements = card[:replacements]
    end
  end
end


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
svggvs-0.0.3 skel/Cardfile
svggvs-0.0.2 skel/Cardfile
svggvs-0.0.1 skel/Cardfile