Fading Spheres
The pattern doesn’t loop soon enough to make a seamless GIF, but if you want to see more, try running it or making tweaks.
void setup() {
size(500,500,P3D);
frameRate(24);
noStroke();
}
void draw() {
background(0);
translate(width/2,height/2);
scale(3,3);
lights();
for (int i = 1; i < 9; i++) {
rotateY(radians((cos(millis()*(i*0.0001))*180)));
rotateX(radians((sin(millis()*(i*0.0001))*180)));
float oPac = (abs(cos(millis()*0.002))+1)*(10*i);
fill(oPac+(10*i),oPac+(10*i),255,oPac);
sphereDetail(i*i);
pushMatrix();
translate(0,0,10);
sphere(48);
popMatrix();
}
//saveFrame();
}