I made PLJS, a experiment with which you can live code with Processing, in Javascript

edited August 2016 in Share Your Work

Hi !

A little while I used Nashorn script engine for a project, basically it let you execute Javascript code within a Java context. So an idea popped my head : what if this context was the Processing one and the file re-read at each draw loop ? So here it is : https://github.com/procsynth/ProcessingLiveJS

It is all explained in the readme but to use it you just have to have Java 8, download the pljs.jar, and when the file selector pop out, choose your javascript file. I provided an example js file.

It was put together in less than four hours, while I couldn't sleep, is likely to break (avoid redefining the Processing things ;D). But go try it, I may perfect it if some people are interested.

Have fun !

PLJS in action

Tagged:
Sign In or Register to comment.