I just committed a little sunday afternoon project. I think I figured out out a good way to wrap processing-js. I've got a little demo working of circle that expands and contracts and follows the mouse around. If you've ever looked at the processing-js page you'll know the demo I'm talking about.
Lots more functions to wrap, and I've got more work to do on a better way to expose some of the things that processing exposes as global variables, but I think this is going to work very nicely! If anyone is interested in helping out let me know!
If you want to take a look, clone the repository and then open up the proctest.html file under doc/static
Brad Miller, Ph.D.
2. Is this kind of wrapping necessary for using processing js libraries, such as toxiclibs.js?