HTML5 Canvas KineticJS Line Tutorial

To create a line with KineticJS, we can instantiate a Kinetic.Line() object.  This tutorial demonstrates three simple lines that's constructed from an array of points.  As we'll see in the next tutorials, the Line class can also be used to create polygons, splines, and blobs as well.  For a full list of attributes and methods, check out the Kinetic.Line documentation.

new window

Code Editor

Modified on January 16th, 2014 by Eric Rowell
comments powered by Disqus