Skip to content

Instantly share code, notes, and snippets.

@radiovisual
Created September 16, 2015 17:21
Show Gist options
  • Save radiovisual/dbe8d35d227a441a395f to your computer and use it in GitHub Desktop.
Save radiovisual/dbe8d35d227a441a395f to your computer and use it in GitHub Desktop.
Start template for working with WebGL
<!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>
@radiovisual
Copy link
Author

Jonathan: Copy and paste this into a file, and save with an .html extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment