Answers for "JavaScript .clearRect"

0

JavaScript .clearRect

var canvas = document.querySelector('canvas');
var ctx = canvas.getContext('2d');

//ctx.clearRect(x, y, width, height);
ctx.clearRect(20, 20, 100, 50);
Posted by: Guest on October-21-2021

Code answers related to "JavaScript .clearRect"

Code answers related to "Javascript"

Browse Popular Code Answers by Language