Skip to content

Instantly share code, notes, and snippets.

@dennisschaaf
Created December 21, 2011 12:33
Show Gist options
  • Save dennisschaaf/1505883 to your computer and use it in GitHub Desktop.
Save dennisschaaf/1505883 to your computer and use it in GitHub Desktop.
Canto structure
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://static.dennisschaaf.com/hand-canvas-pre-release.js"></script>
<script type="text/javascript" src="http://your-domain.com/hand-canto.js"></script>
<script type="text/javascript">
function drawCanvas(){
// Get the canto instance directly, we don't need to worry about canvas with this library.
var canto = canto('tutorial');
// The Drawing Code Goes Here..
}
</script>
</head>
<body onload="drawCanvas();">
<canvas id="tutorial" width="500" height="500"></canvas>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment