HTML5 Canvas KineticJS Regular Polygon Tutorial

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.

Open in new window

Code Editor

Modified on May 17th, 2013 by Eric Rowell
comments powered by Disqus