Skip to content Skip to sidebar Skip to footer

Is There A Way To Clear An Element From A Canvas Without Eliminating The Others?

I' m building a page loader with canvas, and using the es6 classes... ALthough at the moment I can't make it work properly.. one of the reason is that I can't find a way to clear t

Solution 1:

Once you've painted something onto a canvas you cannot simply remove that object.

Canvas' aren't layered like HTML elements, so removing an object wouldn't show the objects beneath.

The cleanest way would be to re-paint the state before.

Post a Comment for "Is There A Way To Clear An Element From A Canvas Without Eliminating The Others?"