void setup(){ frameRate(15); size(1024,768); background(0); fill(255); smooth(); noStroke(); noCursor(); } void draw(){ if(frameCount % (int)( 5 + 10*Math.random()) != 0){ fill(0,0,0, 50); rect(0,0, width, height); return; } fill( (float)(255 - Math.random()*50), 255, (float)(255 - Math.random()*100)); double r = Math.random(); if(r < .5){ for(int i = 0; i < height; i+= 8){ double d = Math.random(); if(d < .33){ rect(0, i, width, (float)(30*Math.random())); } } }else{ for(int i = 0; i < width; i+= 8){ double d = Math.random(); if(d < .33){ rect(i, 0, (float)(30*Math.random()), height); } } } }