Answers for "html canvas reset"

-2

resetting canvas html

var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
context.clearRect(0, 0, canvas.width, canvas.height);
Posted by: Guest on May-19-2020

Browse Popular Code Answers by Language