Created
October 12, 2011 19:17
-
-
Save zeffii/1282231 to your computer and use it in GitHub Desktop.
loading an image
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> | |
<!-- Load the Paper.js library --> | |
<script type="text/javascript" src="js/paper.js"></script> | |
<!-- Load external PaperScript and associate it with myCanvas --> | |
<script type="text/paperscript" src="js/v2_MyScript.js" canvas="myCanvas"> | |
</script> | |
</head> | |
<body> | |
<canvas id="myCanvas" resize></canvas> | |
<div class="resource"> | |
<img width="260" height="399" src="pimg/imgtest.png" id="imgtest" class="hidden"> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment