Compiles PaperScript code into JavaScript code.
Executes the parsed PaperScript code in a compiled function that receives all properties of the passed PaperScope as arguments, to emulate a global scope with unaffected performance. It also installs global view and tool handlers automatically for you.
Loads, compiles and executes PaperScript code in the HTML document.
Note that this method is executed automatically for all scripts in the document through a window load event. You can optionally call it earlier (e.g. from a DOM ready event), or you can mark scripts to be ignored by setting the attribute ignore="true" or data-paper-ignore="true", and call the PaperScript.load(script) method for each script separately when needed.
Copyright © 2011 Jürg Lehni & Jonathan Puckey. All Rights Reserved.