xxxxxxxxxx
f=0
setup=_=>{
document.body.style.background = "#000000";
createCanvas(W=400,W,WEBGL);
noStroke();
}
draw=_=>{
[-9,9].map(i=>pointLight([W],q=PI/2,i*W,i*-W));
rotateY(f-=.01);
rotate(q/2);
for(x=0;x<TAU;x+=q/4){
for(y=-q;y<q; y+=q/8){
push();
rotateX(x+q+f);
rotateY(y-f%(q/8));
translate(0,0,-W);
torus(40,9);
rotateX(q);
cone(99,66);
pop();
}
}
}
// f=0,draw=t=>{for(f||createCanvas(W=400,W,WEBGL),Y=rotateY,[-9,9].map(t=>pointLight([W],q=PI/2,t*W,t*-W)),Y(f-=.01),rotate(q/2),x=0;x<TAU;x+=q/4)for(y=-q;y<q;y+=q/8)push(X=rotateX),X(x+q+f),Y(y-f%(q/8)),translate(0,0,-W),torus(40,9,W),X(q),pop(cone(99,66,W))};//#つぶやきProcessing