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().
KAZ
June 26, 2018, 3:03am
3
Hope this would help…
void setup() {
surface.setLocation(-200,-200);
surface.setVisible(false);
}
KAZ
June 26, 2018, 3:13am
4
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.
KAZ
June 28, 2018, 2:52am
6
Well It worked for me in Windows, I don’t have a Mac, Sorry!