Answers for "canvas fillrect"

2

canvas fillrect

var c = document.getElementById("myCanvas");
var ctx = c.getContext("2d");
ctx.fillStyle = "red";
ctx.fillRect(20, 20, 150, 100);
Posted by: Guest on May-12-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language