We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
I've been a programmer for a while and I am interested in using the built-in graphics libraries in Processing, I think can manage the Java part of Processing but I have two particular features that my programme would have and I'd like to check it would be possible in processing before I start :
Thanks for your help.
Answers
1) Sort of. You will always get a sketch window that appears, but there is no need to use it for anything. You can just leave it blank, do whatever you like, and the call exit() to close the sketch. If you really, really need a headless mode, I think there is one, but it's a trick and a half to get it to work.
2) Yes.
Here's an example sketch that may suit your needs:
See also: https://github.com/processing/processing/wiki/Running-without-a-Display
Thank you.
The headless link goes to some technical Linux thing so I don't think it applies (I am trying to write this for a Windows desktop), but thanks for looking.
If the programme runs quickly enough it might appear and dis-appear without being noticed or too obvious.
Thanks for that, now all I need is to write the rest of the code (!).
@Quoque --
On Windows specifically you should also be aware of the the command line option, if you aren't already:
The two built-in objects for non-visible pixel buffers in Processing are PImage and PGraphics. PGraphics (as used in TfGuy44 's example) also has drawing methods. Nothing is rendered to the screen unless you render the object with
image()
.