xxxxxxxxxx
f=0
function draw() {
T=translate
f||createCanvas(W=400, W, WEBGL)
noStroke()
T(sin(f)*60,-20,z=170)
push(f+=.01)
T(X=sin(-f)*99,0,Z=cos(f)*99)
pop(sphere(4,W))
pointLight([W],X,0,z+Z)
for(i=0;i<TAU;i+=PI/32){
push()
rotateY(i+f)
T(120,0)
rotateX(.8)
pop(torus(80,4,W))
}
}
// ----------------------------------------
// Minimized
// ----------------------------------------
// function draw(){for(f||createCanvas(W=400,W,WEBGL,T=translate),T(60*sin(f),-20,z=170),push(f+=.01),T(X=99*sin(-f),0,Z=99*cos(f)),pop(sphere(4,W)),pointLight([W],X,0,z+Z),i=0;i<TAU;i+=PI/32)push(),rotateY(i+f),T(120,0),rotateX(.8),pop(torus(80,4,W))}f=0;//#つぶやきProcessing