Skip to content

Instantly share code, notes, and snippets.

@lonelydatum
Last active August 29, 2015 14:16
Show Gist options
  • Save lonelydatum/d5a0c8589bbfa5c1d7cb to your computer and use it in GitHub Desktop.
Save lonelydatum/d5a0c8589bbfa5c1d7cb to your computer and use it in GitHub Desktop.
canvas skeleton
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<link rel="stylesheet" href="../include/style.css">
</head>
<body>
<canvas id="canvas" width="400" height="400"></canvas>
<script>
window.onload = function () {
var canvas = document.getElementById('canvas');
var context = canvas.getContext('2d');
};
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment