xxxxxxxxxx
void setup() {
size (1200, 600, P3D);
}
void draw() {
background(255);
directionalLight(126, 126, 126, 0, 0, -1);
translate(width/2, height/2, 0);
//sphere
pushMatrix();
rotateY(frameCount*-0.03);
rotateX(frameCount*-0.03);
noStroke();
fill (0, 255, 255, 30);
sphere (50);
popMatrix();
//sphere1
pushMatrix();
rotateY(frameCount*0.025);
rotateX(frameCount*-0.03);
noStroke();
fill (0, 0, 0, 30);
translate (70, 70, 0);
sphere (20);
popMatrix();
//sphere2
pushMatrix();
rotateY(frameCount*0.008);
rotateX(frameCount*0.01);
noStroke();
fill (255, 0, 0, 30);
translate (110, 110, 0);
sphere (20);
popMatrix();
//sphere3
pushMatrix();
rotateY(frameCount*-0.0088);
rotateX(frameCount*0.0088);
noStroke();
fill (0, 255, 255, 30);
translate (180, 180, 0);
sphere (20);
popMatrix();
//sphere4
pushMatrix();
rotateY(frameCount*-0.009);
rotateX(frameCount*-0.009);
noStroke();
fill (255, 0, 0, 30);
translate (210, 210, 0);
sphere (20);
popMatrix();
//ellipse1
pushMatrix();
rotateY(frameCount*0.02);
rotateX(frameCount*-0.01);
noFill ();
stroke (255, 0, 0, 50);
strokeWeight(5);
ellipse (0, 0, 150, 150);
popMatrix();
//ellipse2
pushMatrix();
rotateY(frameCount*0.025);
rotateX(frameCount*-0.03);
noFill ();
stroke (218);
strokeWeight (5);
ellipse (0, 0, 200, 200);
popMatrix();
//ellipse3
pushMatrix();
rotateY(frameCount*-0.03);
rotateX(frameCount*0.05);
noFill ();
stroke (#B7F4FF);
strokeWeight(5);
ellipse (0, 0, 250, 250);
popMatrix();
//ellipse4
pushMatrix();
rotateY(frameCount*0.008);
rotateX(frameCount*0.01);
noFill ();
stroke (255, 0, 0, 50);
strokeWeight(5);
ellipse (0, 0, 300, 300);
popMatrix();
//ellipse5
pushMatrix();
rotateY(frameCount*0.007);
rotateX(frameCount*0.015);
noFill ();
stroke (218);
strokeWeight(5);
ellipse (0, 0, 400, 400);
popMatrix();
//ellipse6
pushMatrix();
rotateY(frameCount*-0.0088);
rotateX(frameCount*0.0088);
noFill ();
stroke (#B7F4FF);
strokeWeight(5);
ellipse (0, 0, 500, 500);
popMatrix();
//ellipse7
pushMatrix();
rotateY(frameCount*-0.009);
rotateX(frameCount*-0.009);
noFill ();
stroke (255, 0, 0, 50);
strokeWeight(5);
ellipse (0, 0, 600, 600);
popMatrix();
//box1
pushMatrix();
rotateY(frameCount*0.009);
rotateX(frameCount*0.009);
noFill ();
stroke (218);
strokeWeight(5);
box (550);
popMatrix();
}