meta data for this page
This is an old revision of the document!
Polygon
A two dimensional shape with straight sides, and the shape is “closed” (all the sides connect up).
Learn about polygons at MathIsFun.com
The following show examples of creating polygons from a list of points.
Defaults:
- empty
const myshape = polygon([ [0,0],[3,0],[3,3] ]) const myshape = polygon({ points: [ [0,0],[3,0],[3,3] ] })