You are on page 1of 1

<canvas id="test" width='100' height='100'>

// javascript: set up the canvas object for drawing

var canvas = document.getElementById("test");

var context = canvas.getContext("2d");

context.beginPath();

context.moveTo(50,0);

context.lineTo(50,100);

context.stroke();

You might also like