void setup() { size(700,500); background(60); noLoop(); } //-------------------------------------------- float x = 0; float b = 100; float i = 5; float r = 100; float g = random (100, 255); //-------------------------------------------- void draw(){ noFill(); smooth(); stroke(r,g,b); strokeWeight(i); ellipse(mouseX, mouseY, x, x); x = x + 5; if (x > width * 1.5) { x = width * 1.5; } r = r - .7; b = b + .7; } //------MOUSE ACTIONS-------------------------- void keyPressed() { // if(keyPressed) { background(60); redraw(); x = 0; b = random(0, 200); r = random(80, 255); noLoop(); } void mousePressed() { loop(); } void mouseReleased() { noLoop(); }