Canvas Cheat Sheet

HTML5 Canvas Cheat Sheet

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.

comments powered by Disqus