Files
squib/bin/squib-eg
T
Andy Meneely e036d36737 More exploration spikes
* Playing with PDF support
* Added background
* Added rectangle
* Split save to save_pdf and save_images since PDFs are way different
* Working on text rendering (non-pango for now, but that'll change)
2014-07-13 01:10:24 -04:00

20 lines
429 B
Ruby

#!/usr/bin/env ruby
require 'squib'
deck width: 825, height: 1125, cards: 3
background [1.0,1.0,1.0]
data = {'name' => ['Thief', 'Grifter', 'Mastermind'],
'level' => [1,2,3]}
rect x: 0, y: 0, width: 825, height: 1125, x_radius: 30, y_radius: 30
text str: data['name'], x: 10, y: 250
rect x: 10, y: 250, width: 100, height: 100
text str: data['level'], x: 10, y: 15
save format: :png
save format: :pdf
puts "Done!"