Code – Random pattern


void setup(){
size(800 ,800);

}
void draw(){
if (mousePressed){
fill(random(0,255));
} else {
fill(random(0,255),random(0,255),random(0,255));
}
ellipse(mouseX,mouseY,80,80);
}

void setup(){size(800,800);} void draw(){if (mousePressed){fill(random(0,255));} else {fill(random(0,255),0,200);}ellipse(mouseX,mouseY,80,80);}