void setup() { size(400,400); smooth(); frameRate(15); background(0); } void draw() { fadeAway(); // move the execution to the function drawRandomEllipse(); // move the execution to the function } // Paint a transparent black rectangle over window void fadeAway() { fill(0,20); rect(0,0,width,height); } // Draw an ellipse of random color and size at random position void drawRandomEllipse() { fill(random(128,255),random(128,255),random(128,255)); ellipse(random(width),random(height),100,100); } // START NO NOTES // code used to capture screenshots void keyReleased() { if(key == '`' && !online) save("sketch.png"); }