Last active
December 11, 2016 16:56
-
-
Save gmisail/e8b2b0954243d1c922c5096119aa8b62 to your computer and use it in GitHub Desktop.
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
/* Example A*/ | |
/* HTML */ | |
<canvas id='view' width=800 height=600></canvas> | |
/* JS */ | |
var canvas = document.getElementById('view').getContext('2d'); | |
/* Example B*/ | |
/* HTML */ | |
<canvas id='view' width=800 height=600></canvas> | |
/* JS */ | |
var canvas = document.getElementById('view').getContext('2d'); | |
canvas.fillStyle = "black"; | |
canvas.fillRect(0, 0, 800, 600); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment