Start sketch with hidden window

void setup() {
  surface.setVisible(false);
}

If we run the above code, the window itself gets hidden but with a sudden flicker — we can see it get created and then hidden. Is it possible to start with a truly hidden window (no flicker) and show it later on?

Things you could try:

Set the window position to something off the screen as determined by screen Width and screenHeight.

Do the above, but in settings().

Hope this would help…

void setup() {
  surface.setLocation(-200,-200);
  surface.setVisible(false);
}

Gobbledygook:

float i=0;

void setup() {
  surface.setLocation(-200,-200);
 
}

void draw(){
  surface.setLocation((int)(i=(i+0.1)%450),(int)(i=(i+0.2)%450));
}

None of the above methods work. At least not on macOS. I had already tried it.

The window does indeed appear relocated, but never beyond a certain point. It’s never created completely outside the visible bounds of the screen.

Well It worked for me in Windows, I don’t have a Mac, Sorry!