Skip to content

Commit

Permalink
duh, sprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
vogon committed Sep 28, 2013
1 parent 61a3576 commit b2f4195
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion everycolor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def chunkify_color(color)

def make_color_png(color)
rgba, w3cname = chunkify_color(color)
hex = printf("%06x", color)
hex = sprintf("%06x", color)
png = ChunkyPNG::Image.new(400, 300, rgba)
filename = "#{hex}_#{w3cname}.png"

Expand Down

0 comments on commit b2f4195

Please sign in to comment.