Skip to content

Instantly share code, notes, and snippets.

@iros
Created April 2, 2014 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iros/9941053 to your computer and use it in GitHub Desktop.
Save iros/9941053 to your computer and use it in GitHub Desktop.
{
"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