Languages
[Edit]
EN

JavaScript - how to clear canvas?

12 points
Created by:
Sujay
512

Simple solution:

 

Using JavaScript it is possible to clear canvas in following way.

1. clearRect method example

Edit

See also

Edit
  1. JavaScript - how to clear canvas with specific color?

Alternative titles

  1. JavaScript - how to clean canvas?
  2. JavaScript - how to clean rect?
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

JavaScript - HTML5 canvas tutorial

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join