Clear canvas using composite operation

suggest change

Clear the canvas using compositing operation. This will clear the canvas independent of transforms but is not as fast as clearRect().

ctx.globalCompositeOperation = 'copy';

anything drawn next will clear previous content.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents