HTML5 Canvas Hide and Show Shape with KineticJS

To hide and show a shape with KineticJS, we can set the visible property when we instantiate a shape, or we can use the hide() and show() methods.

Instructions: Click on the buttons to show and hide the shape.

Open in new window

Code Editor

Modified on April 9th, 2013 by Eric Rowell
comments powered by Disqus