To create a regular polygon with KineticJS, we can instantiate a Kinetic.Polygon() object. Examples of regular polygons are triangles, squares, pentagons, hexagons, etc. For a full list of attributes and methods, check out the Kinetic.RegularPolygon documentation.
Code Editor
Modified on May 17th, 2013
by Eric Rowell