Prawn::Graphics::Patterns

Public Instance Methods

fill_gradient(*args) click to toggle source

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
stroke_gradient(*args) click to toggle source

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.