class Magick::RVG::Polyline
Public Class Methods
new(*points)
click to toggle source
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 Magick::RVG::ShapeConstructors#polyline
method to create Polyline objects in a
container.
Calls superclass method
# File lib/rvg/embellishable.rb, line 146 def initialize(*points) super() points = polypoints(points) @primitive = :polyline @args = Magick::RVG.convert_to_float(*points) end