xxxxxxxxxx
void setup()
{
size(500, 500);
background(180, 180, 180);
}
void draw()
{
if (mousePressed == false)
{
fill(180);
noStroke();
rect(0, 0, width, height);
translate(width/2, height/2);
float x = sin(millis()/4000.0);
float y = cos(mouseX/500.0);
fill(80, 80, 80);
noStroke();
ellipse(0, x*100, y*400, y*300);
}
else
{
fill(167, 226, 53);
noStroke();
rect(0, 0, width, height);
translate(width/2, height/2);
float a = sin(millis()/100.0);
float b = cos(mouseX/500.0);
fill(246, 122, 13);
noStroke();
ellipse(0, a*100, b*200, b*200);
ellipse(-150, a*200, b*80, b*80);
ellipse(150, a*200, b*80, b*80);
fill(3, 151, 255);
ellipse(130, a*300, b*40, b*40);
ellipse(-130, a*300, b*40, b*40);
}
}