xxxxxxxxxx
void setup()
{
size(500,500);
colorMode(HSB,360,100,100);
background(300,33,99);
}
void draw()
{
if (mousePressed == true)
{
background(299,23,100);
float x=cos(millis()/481.9);
float y=sin(millis()/142.8);
translate(202,208);
noStroke();
fill(0,79,100);
ellipse(x*352,y*178,100,100);
translate(50,50);
noStroke();
fill(0,79,100);
ellipse(x*20,y*10,y*500,y*500);
noStroke();
fill(0,79,100);
ellipse(x*100,y*90,100,100);
}
else if(mousePressed == false)
{
float x=cos(millis()/81.9);
float y=sin(millis()/442.8);
background(0);
rectMode(CENTER);
fill(0,93,67);
noStroke();
rect(250*y,200*x,80,80);
rectMode(CENTER);
fill(25,94,72);
noStroke();
rect(150*x,200*y,90,90);
rectMode(CENTER);
fill(280,96,56);
noStroke();
rect(290*x,280,80,80*y);
rectMode(CENTER);
fill(124,100,37);
noStroke();
rect(340,340*x,40,80);
}
}