Hello,
I'm quite familiar to Processing but I'm still starting to learn how to use other Java methods in my sketches.
Whenever I continuously use any method that resizes the Java frame, such as setSize(), the application window starts flashing white.
This is an example of what I'm talking about:
int windowHeight=200;
void setup() {size (200, 200);smooth();stroke(0);fill(255);ellipseMode(CORNER);}
void draw() {background(128);for (int i=0;i<100;i++){ellipse((i/10)*20,(i%10)*20,20,20);}windowHeight++;frame.setSize(200,windowHeight);}
Curiously, the flickering happens more frequently in some computers than others, and apparently in some computers it doesn't happen at all. If you don't see the flickering, try dragging the window while it grows, it should get more intense.
Also, I found out you can change the color of the flash by using this line in the setup() method:
setBackground(new java.awt.Color(255,0,0));
I've searched through the web and found other people who had the same problem in Java forums, but apparently no one found a solution.
Does anyone know a way to prevent this from happening? Thanks in advance.
1