Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript getcontext

var canvas = document.getElementById("canv");
var ctx = canvas.getContext("2d");
ctx.fillStyle = "red";
ctx.fillRect(10, 10, 80, 80);
 
PREVIOUS NEXT
Tagged: #javascript #getcontext
ADD COMMENT
Topic
Name
7+4 =