function setup(){
p=min(windowWidth,windowHeight)
createCanvas(p,p);
background(255);
angleMode(DEGREES);
strokeWeight(0.1)
}
function draw(){
for (let i=0;i<3;i++){
for (let j=0;j<3;j++){
push()
translate(i*width/3+3,j*width/3+3)
rBox();
pop()
}
}
noLoop()
}
function rBox(){
fill(random(175,250), random(205,245), random(200,255));
rect(0,0,width/3.1,width/3.1);
a=int(random(5,width*0.02));
fill(random(0,255),random(0,255),random(0,255))
k=random(0,30)
r=random(width/12,width/7)
beginShape()
for (let i=0;i<(360*6);i++){
x=r*cos(k*i)*cos(i)
y=r*cos(k*i)*sin(i)
vertex(x+width/6,y+width/6);
}
endShape(CLOSE)
fill(random(0,55),random(0,255),random(0,255))
circle(width/6,width/6,random(2,50))
}
function mousePressed(){
draw();
}