I'm trying to learn paper.js from tutorials, but i'cant make it work from external file .What is the easiest way to implement external paperscript files?
Like stated in the Getting started tutorial, if you want to use Paperjs with an external file:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="js/paper.js"></script>
<script type="text/paperscript" src="js/myScript.js" canvas="myCanvas"></script>
</head>
<body>
<canvas id="myCanvas" resize></canvas>
</body>
</html>
Be sure to specify:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With