Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Draws a closed, two-dimensional region within a coordinate space. This region is bounded by an arbitrary number of line segments, each of which is one side of the polygon. Internally, a polygon comprises of a list of (x,y)  coordinate pairs, where each pair defines a vertex of the polygon, and two successive pairs are the endpoints of a line that is a side of the polygon. The first and final pairs of (x,y) points are joined by a line segment that closes the polygon.

Properties

Property

Default

Notes

points

 

An even list of points

Example

Code Block
polygon( points: [175, 38, 229, 69, 229, 131, 175, 162, 121, 131, 121, 69],
         borderColor: 'green', borderWidth: 6, fill: 'white' )