This project is no longer maintained. You may be interested in p5js.
- Create a separate Processing file or files, naming them whatever you want, as long as they have a *.pde extension.
- Include Processing filenames as a space-separated list in a data-processing-sources attribute on the canvas.
- Processing.js will automatically scan the document on page load for elements with data-processing-sources attributes, download the files using XMLHTTPRequest, and feed them to the Processing-to-JavaScript translator. The resulting JavaScript is run using eval.
- To change canvas size:
- edit ".processingcanvas" class in "css/style.css".
- edit *.pde file's "size()" function in "void setup()" on line 4.