i think frame.setUndecorated(true); works for processing 1.5.1 only (at least i didn t succed to apply it to surface)
a workaround (at least on mac) is:
int x = 0;
void setup() {
fullScreen();
surface.setResizable(true);
surface.setSize(500,500);
surface.setLocation(displayWidth/2-250, displayHeight/2-250);
background(0);
noStroke();
fill(102);
}
void draw() {
fill(color(random(255)));
rect(x%500, height*0.2, 1, height*0.6);
x = x + 2;
}
but it s kind of weird, forcing fullscreen to avoid decoration then size down, and as it is not what those function was developped for, i can 't say if it works on other computers than mine…
Hey, I don’t know if it’s the best solution, but it seems to work:
void setup() {
//for the background color
colorMode(HSB, 10000, 10000, 10000);
//Fullscreen "disables" the button
fullScreen(P2D);
//sets the size
surface.setSize(600, 600);
//And so that the window is not on the top left, we put it in the middle
surface.setLocation(displayWidth/2-width/2, displayHeight/2-height/2);
}
void draw() {
background(millis()%10000, 10000, 10000);
}