Skip to content Skip to sidebar Skip to footer

Is Clearing Canvas [ 2d Context ] In Html5 Necessary For Good Performance?

I have a 2D canvas and drawing circle indefinitely one above the other. Take this example : http://jsfiddle.net/umaar/fnMvf/ &l

Solution 1:

Canvas is a drawing surface. When you draw an element (e.g. call fill method), you are just changing the color of some pixels on the drawing surface. The canvas does not store any information about the element being drawn. In your example, there is no need to clear the canvas.


Post a Comment for "Is Clearing Canvas [ 2d Context ] In Html5 Necessary For Good Performance?"