Class: Magick::RVG::Polyline

Inherits:
PolyShape show all
Defined in:
lib/rvg/embellishable.rb

Overview

class Polygon

Instance Method Summary collapse

Methods inherited from PolyShape

#polypoints

Methods inherited from Shape

#add_primitives

Methods included from Duplicatable

#deep_copy

Methods included from Transformable

#matrix, #rotate, #scale, #skewX, #skewY, #translate

Methods included from Stylable

#styles

Constructor Details

#initialize(*points) ⇒ Polyline

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.



164
165
166
167
168
169
# File 'lib/rvg/embellishable.rb', line 164

def initialize(*points)
    super()
    points = polypoints(points)
    @primitive = :polyline
    @args = Magick::RVG.convert_to_float(*points)
end