Created
September 16, 2015 17:21
-
-
Save radiovisual/dbe8d35d227a441a395f to your computer and use it in GitHub Desktop.
Start template for working with WebGL
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>YOUR TITLE</title> | |
</head> | |
<body> | |
<script> | |
var canvas = document.createElement("canvas"); | |
canvas.width = window.innerWidth; | |
canvas.height= window.innerHeight; | |
document.body.appendChild(canvas); | |
var context = canvas.getContext("2d"); | |
// START ADDING YOUR CODE HERE | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Jonathan: Copy and paste this into a file, and save with an .html extension