Created
December 21, 2011 12:33
-
-
Save dennisschaaf/1505883 to your computer and use it in GitHub Desktop.
Canto structure
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> | |
<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