Skip to content
Browse files

improved the gradient helper

  • Loading branch information...
1 parent 222c32f commit c152eba740e8067ee383781ff918f4ad10e2ce52 @mattetti committed Apr 25, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/template.rb
View
2 lib/template.rb
@@ -33,7 +33,7 @@ def to_io
end
def gradient_background(top_color='#4a465a', bottom_color='black')
- Image.new(@columns, @rows, GradientFill.new(0, 0, 100, 0, top_color, bottom_color))
+ Image.new(width, height, GradientFill.new(0, 0, width, 0, top_color, bottom_color))
end
end

0 comments on commit c152eba

Please sign in to comment.
Something went wrong with that request. Please try again.