Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
window.onload = function() {
var canvas = document.getElementById("myCanvas");
var context = canvas.getContext("2d");
// Write on the canvas here
context.moveTo(100, 150);
context.lineTo(450, 50);
context.lineWidth = 15;
<canvas id="myCanvas" width="578" height="200"></canvas>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.