@ -10,4 +10,4 @@ Squib::Deck.new(cards: 200, config: 'antialias_best.yml') do
y: (i / 17) * 50
end
save_png prefix: 'antialias_best_'
@ -10,4 +10,4 @@ Squib::Deck.new(cards: 200, config: 'antialias_fast.yml') do
save_png prefix: 'antialias_fast_'
@ -11,4 +11,4 @@ Squib::Deck.new(cards: 200) do
png file: 'shiny-purse.png', x: 250, y: 20
save_png prefix: 'rasterized_'
save_pdf file: 'backend.pdf'
@ -11,4 +11,4 @@ Squib::Deck.new(cards: 200, config: 'backend-svg.yml') do
@ -3,4 +3,4 @@ require 'squib'
Squib::Deck.new(cards: 200) do
png file: 'shiny-purse.png'
save_png prefix: 'tons_of_png_'
@ -4,4 +4,4 @@ Squib::Deck.new(cards: 200) do
svg file: 'spanner.svg',
width: 400, height: 400
save_png prefix: 'tons_of_svg_'
@ -5,4 +5,4 @@ Squib::Deck.new(cards: 200) do
font: 'Sans bold 12', width: 825,
ellipsize: false
save_png prefix: 'tons_of_text_'
@ -9,4 +9,4 @@ module Squib
@ -44,4 +44,4 @@ module Squib
\s* # trailing whitespace is ok
/x
@ -132,4 +132,3 @@ module Squib
@ -25,4 +25,4 @@ Squib::Deck.new(cards: 2) do
save_png prefix: 'cairo_access_'
@ -17,4 +17,4 @@ Squib::Deck.new(config: 'config_disable_quotes.yml') do
x: 10, y: 10, width: 300, height: 200, font: 'Serif 20',
markup: true, hint: :cyan
save_png prefix: 'config_disable_text_'
@ -31,4 +31,4 @@ Squib::Deck.new do
color: '(0,0)(825,0) #000f@0.0 #0000@1.0'
save_png prefix: 'gradient_'
@ -21,4 +21,3 @@ Squib::Deck.new(cards: 8, layout: 'playing-card.yml') do
# Tip: you can have the top card be on the left by reversing the range
# angle_range: (Math::PI / 4)..(Math::PI / -4)
Squib::Deck.new(cards: 2) do
text str: %w(Hello World!)
save_png
@ -22,4 +22,4 @@ Squib::Deck.new(cards: 4) do
file: 'showcase2.png'
save_png prefix: 'showcase_individual_' # to show that they're not trimmed
@ -35,4 +35,4 @@ describe Squib::Deck do
@ -19,4 +19,4 @@ describe Squib::Args::Draw do
@ -150,4 +150,4 @@ describe Squib::Args::Paragraph do
@ -38,4 +38,4 @@ describe Squib::Args::CardRange do
expect(range.to_a).to eq([])
@ -22,4 +22,4 @@ describe Squib::Args::Box do
@ -68,4 +68,4 @@ it 'single quotes inside double quotes' do
@ -19,4 +19,4 @@ describe Squib::Args::UnitConversion do
expect(subject.parse('1cm')).to eq(118.1102361)
@ -8,4 +8,4 @@ describe Squib::Card do
expect(Squib::logger).to receive(:fatal).with("Back end not recognized: 'broken robots'")
expect { Squib::Card.new(deck, 100, 100, 0) }.to raise_error SystemExit
@ -9,4 +9,4 @@ describe Squib.logger do
expect($stdout.string).to match /WARN: Test warn/
$stdout = oldstdout
@ -67,4 +67,4 @@ class Sanity