Run P5 from the command line?

Hello friends. First post. I’d like to create sketches that take hours to produce an image that can then be written out to an image file. I’d like to run this from the command line and let it run overnight. How? I can run a javascript file from the command line with

node *filename.js*

But P5 requires libraries etc. Not sure if this is possible. Help?

1 Like

Were you able to resolve this? Possibly relevant:,-node.js,

Yes, thanks. I’ve decided to get over my hesitation about Java and just write my sketches in Processing. Much easier to make the animations I have in mind, writing out long sequences of images, etc.

1 Like