int x; int y; int c; int d; int h; int s; int b; int e,f; void setup() { size(300,300); background (255); smooth(); x =(int) random (300); y =(int) random (300); c =(int) random (100)+40; d =(int) random (100)+40; h = (int) random(360); s = (int) 360; b = (int) 360; } void draw() { noStroke(); colorMode (HSB); fill(h,s,b); ellipse(x,y,c,d); if (keyPressed){ if (key=='q'||key=='a'||key=='l'){ e= (int) random(300); f=(int) random (300); fill(h,s,b); ellipse(e,f,c,d); } else{ Rect e= new Rect(); e.drawRect(); } } } void mousePressed() { background(255); loop(); }