HTML Canvas

HTML Canvas









Canvas






var canvas = document.getElementById(“myCanvas”);
var ctx = canvas.getContext(“2d”);
ctx.moveTo(0,100);1`
ctx.lineTo(500,100);
ctx.moveTo(0,200);
ctx.lineTo(500,200);
ctx.stroke();




Click here for download .html text file 

2 thoughts on “HTML Canvas

Leave a comment