Alex
Alex

Reputation: 3257

How to wipe specific area in canvas

I'm trying to make canvas draw code for the purposes of electronics education. Please take a look at: http://3lectronics.com/draw/Atarado-Draw1.html

Trying to make script for electronics layout on Atarado prototyping board, and I'm just JS very beginner. I stacked with erasing part of the canvas (yes I know that should be work with SVG, but with it I'm comfortable a lot).

Also know that draw on canvas is like simple paint program working with pixels, but those programs have kind of tool for wiping bitmap part of area...

Upvotes: 0

Views: 119

Answers (1)

TJHeuvel
TJHeuvel

Reputation: 12608

See canvas.clearRect(x1,y1,x2,y2), or fillRect with a white color.

Upvotes: 3

Related Questions