Created
October 21, 2017 18:43
-
-
Save bit101/0e38522919565f652ed5be66007cc494 to your computer and use it in GitHub Desktop.
JavaScript Template for tutorials
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
var canvas = document.getElementById("canvas"), | |
context = canvas.getContext("2d"), | |
width = canvas.width = window.innerWidth, | |
height = canvas.height = window.innerHeight; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment