xxxxxxxxxx
void setup() {
size(500, 500);
background(255);
}
void draw() {
if (mousePressed) {
randomCircle();
}
}
void randomCircle() {
float x = random(width);
float y = random(height);
int diameter = floor(random(10, 50));
float r = random(255);
float g = random(255);
float b = random(255);
float a = random(255);
fill(r, g, b, a);
ellipse(x, y, diameter, diameter);
}