We are about to switch to a new forum software. Until then we have removed the registration on this forum.
So with processing.js, JavaScript Mode and p5.js, we now have at least three different ways of using Processing to make JavaScript (JS). I couldn't find a concise comparison of them, but I think it goes something like this? I'd appreciate any corrections or clarifications.
var
and function
syntax that implies. It's the newest of these projects, and is emphatically 'a new interpretation, not an emulation or port', so we should expect more divergence from the main Processing project, but perhaps better integration with web sites.Does that sound about right? Would anyone like to add anything about the motivations for all these approaches?
Comments
JavaScript Mode uses processing.js in order to transform a Java Syntax source code into a JS running code.
Dunno much about p5.js. But seems like CoffeeScript Mode but using real JS syntax.
here is some info about how p5.js differs from processing.js: https://github.com/lmccart/p5.js#how-is-this-different-than-processingjs
and here is an overview of main syntax differences between Processing and p5.js: https://github.com/lmccart/p5.js/wiki/Processing-transition additionally, in p5.js your whole page becomes your sketch area, not just the graphics canvas, so there are libraries to interact with other HTML5 features and objects: p5js.org/libraries/
Thanks @lmccart! Nice summary. :)
Someone on G+ pointed me to that first page after I posted here. I'd even looked at the GitHub page, but I guess I didn't scroll down far enough...