Skip to content

Instantly share code, notes, and snippets.

@kennyp
Created February 22, 2013 20:37
Show Gist options
  • Save kennyp/5016367 to your computer and use it in GitHub Desktop.
Save kennyp/5016367 to your computer and use it in GitHub Desktop.
require_relative './text_effect'
fonts = %w(Courier Helvetica Times-Roman Arial-Regular Consolas-Regular
Inconsolata-Medium Times-New-Roman-Regular Verdana-Regular)
effects = [:arc, :taper, :concave, :pinch, :bulge, :ramp, :wedge, :normal]
fonts.product(effects).each do |font, effect|
File.open("#{font}-#{effect}.svg", "w") do |f|
f.write TextEffect.new('Hello World!', font, effect)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment