multi-ringed sphere
@author
float step = 5;
color c1 = color(0, 206, 209);
color c2 = color(255, 215, 0);
void setup(){
size(500, 500, P3D);
noFill();
}
void draw(){
background(0);
translate(width / 2, height / 2);
for(float d = step; d <= 400; d += step){
pushMatrix();
rotateX(frameCount * 0.001 * map(d, step, 400, 1, 3));
rotateY(frameCount * 0.002 * map(d, step, 400, 1, 3));
rotateZ(frameCount * 0.003 * map(d, step, 400, 1, 3));
stroke(map(d, step, 400, red(c1), red(c2)),
map(d, step, 400, green(c1), green(c2)),
map(d, step, 400, blue(c1), blue(c2)));
ellipse(0, 0, d, d);
popMatrix();
}
}