void setup() {
size(600,600);
background(b);
frameRate(102);
smooth();
}
float x=0;
float y=0;
float d;
float r=300;
float s;
int b=0;
void draw() {
translate(width/2,height/2);
circles();
}
void circles() {
noStroke();
x = random(-r,r);
y = random(-1*sqrt(r*r-x*x),sqrt(r*r-x*x));
d = pow(x*x+y*y,.5);
s = 10*pow((r-d)/2,.3);
fill(random(200,255),random(100,255),random(200,255),random(255));
ellipse(x, y, random(.9*s,1.1*s), random(.9*s,1.1*s));
}
void mousePressed() {
if (b>255) {
b=0;
}
background(b);
b=+50+b;
}