Methods

Class Index [+]

Quicksearch

Magick::RVG::Polygon

Public Class Methods

new(*points) click to toggle source

Draws a polygon. The arguments are [x, y] pairs that define the points that make up the polygon. At least two points must be specified. If the last point is not the same as the first, adds an additional point to close the polygon. Use the RVG::ShapeConstructors#polygon method to create Polygon objects in a container.

     # File lib/rvg/embellishable.rb, line 150
150:             def initialize(*points)
151:                 super()
152:                 @primitive = :polygon
153:                 @args = polypoints(points)
154:             end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.