| Class | Magick::RVG::Polyline |
| In: |
lib/rvg/embellishable.rb
|
| Parent: | PolyShape |
Draws a polyline. The arguments are [x, y] pairs that define the points that make up the polyline. At least two points must be specified. Use the RVG::ShapeConstructors#polyline method to create Polyline objects in a container.
# File lib/rvg/embellishable.rb, line 163
163: def initialize(*points)
164: super()
165: points = polypoints(points)
166: @primitive = :polyline
167: @args = Magick::RVG.convert_to_float(*points)
168: end