20 lines
429 B
Ruby
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!" |