I wondered if anyone could shed some light on the way in which layers are managed in Canvas and KineticJS. I'm struggling understand why when i clear(); a layer, then use the draw(); function on that layer again, it comes back with the shapes etc that I originally add to that layer.
for example:
I assumed clearing a layer completely removes it, and in order to redraw it i would have to set up new shapes and construct a new layer.
If anyone could explain this too me I would be very thankful.
Cheers, Caius