We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I wish to use p5.js in conjunction with node.js to create a Twitter-bot which generates noise-based images and posts them at random times to Twitter. The difficulty is getting p5.js into the node.js universe. I have tried a few of the methods for making modules and such, but no luck there: I typically get a 'ReferenceError: window is not defined error'. So, briefly, has anyone been able to use p5.js in the server? If so, how? If impossible as present, any suggestions/work-arounds to call a script from node.js, the script is just creating a .jpg and putting it on the server, then node takes the .jpg and posts it.