Module: Prawn::Graphics::Patterns
- Included in:
- Prawn::Graphics
- Defined in:
- lib/prawn/graphics/patterns.rb
Overview
Implements axial & radial gradients.
Stable API collapse
-
#fill_gradient(from, to, color1, color2, apply_margin_options: false) ⇒ void
#fill_gradient(from, r1, to, r2, color1, color2, apply_margin_options: false) ⇒ void
#fill_gradient(from: , to: , r1: nil, r2: nil, stops: , apply_margin_options: true) ⇒ void
Sets the fill gradient.
-
#fill_gradient(from, to, color1, color2, apply_margin_options: false) ⇒ void
#fill_gradient(from, r1, to, r2, color1, color2, apply_margin_options: false) ⇒ void
#fill_gradient(from: , to: , r1: nil, r2: nil, stops: , apply_margin_options: true) ⇒ void
Sets the stroke gradient.
Instance Method Details
#fill_gradient(from, to, color1, color2, apply_margin_options: false) ⇒ void #fill_gradient(from, r1, to, r2, color1, color2, apply_margin_options: false) ⇒ void #fill_gradient(from: , to: , r1: nil, r2: nil, stops: , apply_margin_options: true) ⇒ void
Sets the fill gradient.
Source Code
lib/prawn/graphics/patterns.rb, line 105
105 | def fill_gradient(*args, **kwargs) |
106 | set_gradient(:fill, *args, **kwargs) |
107 | end
|
#fill_gradient(from, to, color1, color2, apply_margin_options: false) ⇒ void #fill_gradient(from, r1, to, r2, color1, color2, apply_margin_options: false) ⇒ void #fill_gradient(from: , to: , r1: nil, r2: nil, stops: , apply_margin_options: true) ⇒ void
Sets the stroke gradient.
Source Code
lib/prawn/graphics/patterns.rb, line 194
194 | def stroke_gradient(*args, **kwargs) |
195 | set_gradient(:stroke, *args, **kwargs) |
196 | end
|