I want to erase all of the canvas in JavaScript to draw a new one, what should I do?

Asked 2 years ago, Updated 2 years ago, 107 views

I want to erase all of the canvas in JavaScript to draw a new one, what should I do?

javascript html5 canvas

2022-09-22 22:09

1 Answers

context.clearRect(0, 0, canvas.width, canvas.height); Do it like this


2022-09-22 22:09

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.