Reputation: 12207
For those that don't know, Processing is a great Java library =for rendering nice visualizations of data and serves as a wrapper for JOGL.
Processing.js is the Javascript port of this library.
In order to create a processing applet inside HTML, you need 3 things.
I'm basically trying out the js version and the problem is that if any libraries are included in the pde, it won't load inside the canvas.
Here are 2 examples:
I have 2 hypotheses:
Upvotes: 5
Views: 4061
Reputation: 183
Unfortunately, Processing.js does not support Processing libraries. This because they are compiled Java bytecode, not Java source code. For physics, you could use Box2D.js. See a tutorial on processingjs.org. For more information on the limitations of Processing.js as compared to Processing, see our P5 quick start guide.
Upvotes: 2