0
ClearRect error
How do I make the previously drawn object in the canvas to get deleted? Even if I use clearRect, it still shows when I draw again https://code.sololearn.com/Wu6oB61QkUYF/?ref=app
2 Respuestas
+ 2
add
ctx.beginPath();
After clearRect(0,0,can.width,can.height);
+ 1
Thank you so much. It actually worked.