Skip to content Skip to sidebar Skip to footer

Working With Multiple Layers - Kineticjs

I'm using KineticJS 4.0.5 and I'm currently trying to draw the contents of several layers but only the last one added to stage is drawn... If I understood the documentation correct

Solution 1:

Clear is simply for clearing the canvas before redrawing it. It does not remove the objects added to the layers. So for your case, use the remove function to take out the objects attached to the layer or otherwise like you are doing, removing the entire layer itself.


Post a Comment for "Working With Multiple Layers - Kineticjs"