xxxxxxxxxx
int time =0;
void setup()
{
size(500,500);
background(255);
}
void draw(){
//background (255);
noStroke();
translate (width/2,height/2);
float y = cos(millis()/1000.0);
float x = tan(millis()/10000.0);
float a = sin(millis()/5000.0);
float b = sin(millis()/500.0);
time = time+1;
if (time > 1900 ){
fill(0,10);
ellipse(x*100,y*80+50,a*40,b*30);
ellipse(x*20,y*50+50,a*20,b*10);
}
else{
rotate(b);
fill(0,0,200,25);
ellipse(x*50,y*150-100,a*20,b*15);
}
}