Disable display

Hi everyone,

This is my first time using processing, and I’d like to generate png files when running processing code from command-line. This part works fine, but I’m having trouble disabling previews. I saw this tutorial on github Running without a Display · processing/processing Wiki · GitHub
but I’m having trouble making this work on Mac OSX. I’m using a M1 MBPro

Thanks a lot !!

An easier way to do this would be to create a PGraphics object, do all your drawing on it, then use its save() method. It’s not strictly headless, but you won’t be drawing to the screen.