Skip to content

Instantly share code, notes, and snippets.

@iros
Created Apr 2, 2014
Embed
What would you like to do?
{
"libraries": [],
"mode": "javascript",
"layout": "fullscreen mode (vertical)",
"resolution": "reset"
}
/* css goes here */
<canvas id="myCanvas" width="578" height="200"></canvas>
var canvas = document.getElementById('myCanvas');
var context = canvas.getContext('2d');
context.beginPath();
context.moveTo(100, 150);
context.lineTo(450, 50);
context.lineWidth = 15;
context.stroke();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment