Sha256: bc21803d20794e8f516a95e6739ee5769869d0e657b7173efec30695bb35eddc

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 Bytes

Contents

#!/usr/bin/env ruby
require 'squib'

data = {'name' => ['Thief', 'Grifter', 'Mastermind'], 
        'level' => [1,2,3]}

Squib::Deck.new(width: 825, height: 1125, cards: 3) do
  background color: :white
  rect x: 38, y: 38, width: 750, height: 1050, radius: 38
  rect x: 75, y: 75, width: 128, height: 128, radius: 25

  text str: data['name'], x: 220, y: 78, font: 'Arial 54'
  text str: data['level'], x: 75, y: 85, width: 128, 
       font: 'Arial 72', align: :center

   png range: [0,2], file: 'shiny-purse.png', x: 620, y: 75
   svg range: 1..2, file: 'spanner.svg', x: 620, y: 218

  save prefix: 'basic_', format: :png#, progress_bar: true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
squib-0.0.4 samples/basic.rb