HTML5 Canvas Shape Layering with KineticJS

To layer shapes with KineticJS, we can use one of the following layering methods: moveToTop(), moveToBottom(), moveUp(), moveDown(), or setZIndex().  You can also layer groups and layers.

Instructions: Drag and drop the boxes to move them around, and then use the buttons on the left to reorder the yellow box.

Open in new window

Code Editor

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