Created
December 8, 2016 23:13
-
-
Save toddbranch/3d9d37c61e91dfa1b02d15bb6a0aa96c to your computer and use it in GitHub Desktop.
Base for drawing on a <canvas>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<canvas id="myCanvas" width="400" height="400"></canvas> | |
<script> | |
var canvas = document.getElementById('myCanvas'); | |
var context = canvas.getContext('2d'); | |
// use the context to draw! | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment