Processing.js for JavaScript Devs: Difference between revisions

Jump to navigation Jump to search
Line 322: Line 322:
</pre>
</pre>


Notice the extra comment line at the top of the code.  The '''@pjs''' directive is for Processing.js, and not the developer.  Think of it as an extra in of code that will be executed before the program begins.
Notice the extra comment line at the top of the code.  The '''@pjs''' directive is for Processing.js, and not the developer.  Think of it as an extra line of code that will be executed before the program begins.


If you have multiple images to load, use a list like so:
If you have multiple images to load, use a list like so:
40

edits

Navigation menu