Code practice

Work with Processing 3.
int c = 255;
void setup() {
size(1920, 1080);
background(0);
frameRate(32);
noStroke();
rectMode(CENTER);
}
void draw() {
fill(c, random(100));
float sz = random(200);
rect(random(width), random(height), sz, sz);
int mfc = frameCount % 200;
if (mfc == 0) {
c = 255 - c; // 255 0 255 0 255 0 ..
}
//saveFrame("frame-####.tif");
if (frameCount >1920) {
noLoop();
int i = frameCount;
println(i, c, "mfc", mfc);
}
}

0001 1921

frame 0304

frame 0304

frame 1920

frame 1920

0001 1400