0
Whenever I draw something in the canvas using the setinterval() function, the things repeat.how can I remove the last drawnShape
Javascript html5 canvas algorithms
4 odpowiedzi
+ 2
You can clear the entire canvas with this function:
ctx.clearRect(0, 0, <canvasWidth>, <canvasHeight>);
+ 1
You need to store the line's properties in
VARIABLES
0
For example I drew a line and gave it a velocity. I want the line to look as if it's falling down. But it continues drawing from the last location. What should I do so that it draws again from the new location?
0
Okay THANKS