Sets the fill gradient from color1 to color2. old arguments: point, width, height, color1, color2, options = {} new arguments: from, to, color1, color1
or from, r1, to, r2, color1, color2
# File lib/prawn/graphics/patterns.rb, line 18 def fill_gradient(*args) set_gradient(:fill, *args) end
Sets the stroke gradient from color1 to color2. old arguments: point, width, height, color1, color2, options = {} new arguments: from, to, color1, color2
or from, r1, to, r2, color1, color2
# File lib/prawn/graphics/patterns.rb, line 26 def stroke_gradient(*args) set_gradient(:stroke, *args) end
Generated with the Darkfish Rdoc Generator 2.