Add antialias config option

Closes #41
This commit is contained in:
Andy Meneely
2015-02-28 19:34:46 -05:00
parent b5016f90c0
commit f49bff2388
33 changed files with 109 additions and 8 deletions
+13
View File
@@ -0,0 +1,13 @@
require 'squib'
Squib::Deck.new(cards: 200, config: 'antialias_best.yml') do
background color: :white
# alphabet = 'a'.upto('z').to_a.join + ' ' + 'A'.upto('Z').to_a.join + ' '
# text str: alphabet * 36 , font: 'Sans Bold 18', width: 825, height: 1125, hint: :red
0.upto(500).each do |i|
circle radius: 50,
x: (i % 17) * 50,
y: (i / 17) * 50
end
save_png prefix: 'antialias_best_'
end
+1
View File
@@ -0,0 +1 @@
antialias: best
+13
View File
@@ -0,0 +1,13 @@
require 'squib'
Squib::Deck.new(cards: 200, config: 'antialias_fast.yml') do
background color: :white
# alphabet = 'a'.upto('z').to_a.join + ' ' + 'A'.upto('Z').to_a.join + ' '
# text str: alphabet * 36 , font: 'Sans Bold 18', width: 825, height: 1125, hint: :red
0.upto(500).each do |i|
circle radius: 50,
x: (i % 17) * 50,
y: (i / 17) * 50
end
save_png prefix: 'antialias_fast_'
end
+1
View File
@@ -0,0 +1 @@
antialias: fast