samples/basic.rb in squib-0.0.4 vs samples/basic.rb in squib-0.0.5

- old
+ new

@@ -1,20 +1,19 @@ -#!/usr/bin/env ruby require 'squib' -data = {'name' => ['Thief', 'Grifter', 'Mastermind'], +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, + 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 + 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 \ No newline at end of file + save prefix: 'basic_', format: :png +end