<canvas id="my-canvas" width="650px" height="500px">
</canvas>
let myCanvas= document.getElementById('my-canvas');
let ctx = myCanvas.getContext('2d');
ctx.lineWidth = 10;
ctx.strokeStyle = 'maroon'
ctx.beginPath();
ctx.moveTo( 50, 75);
ctx.lineTo(300, 50);
ctx.stroke();
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.