Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

canvas fillrect

var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "red";
ctx.fillRect(20, 20, 150, 100);
 
PREVIOUS NEXT
Tagged: #canvas #fillrect
ADD COMMENT
Topic
Name
7+6 =