HTML5 Clear Canvas Tutorial

To clear the HTML5 Canvas, we can use the clearRect() method to clear the canvas bitmap.  This performs much better than other techniques for clearing the canvas, such as resetting the canvas width and height, or destroying the canvas element and then recreating it.

Instructions: Click on the clear button to clear the canvas

邮箱:
密码:

微信扫描二维码捐赠

当前实例由www.100sucai.com整理,
仅作学习参考。感谢大家对本站的支持
web前端交流群:Css Js 网站美工
Animation Frames