Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JavaScript .clearRect

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

//ctx.clearRect(x, y, width, height);
ctx.clearRect(20, 20, 100, 50);
 
PREVIOUS NEXT
Tagged: #JavaScript
ADD COMMENT
Topic
Name
3+8 =