xxxxxxxxxx
let f = 0;
setup = _ => {
createCanvas(400, 400, WEBGL);
}
draw = _ => {
let e = 180;
rotateY(f / e);
rotate(f / e);
if (noise(f) > 0.7) box(6200);
for (y = -e; y < e; y += 60) {
for (z = -e; z < e; z += 60) {
for (x = -e; x < e; x += 60) {
push();
scale(1, tan(f / 99), 1);
stroke(abs(z + y));
let Y = y - f % 60;
translate(x, Y, z);
pop(box(Y / 6));
}
}
}
f++;
}
// ----------------------------------------
// Minimized #つぶやきProcessing
// ----------------------------------------
// f=0,draw=a=>{for(f++||createCanvas(W=400,W,WEBGL),rotateY(f/(e=180)),rotate(f/e),y=-e;y<e;y+=60)for(z=-e;z<e;z+=60)for(x=-e;x<e;x+=60)push(noise(f)>.7&&box(6200)),scale(1,T=tan(f/99),1),stroke(abs(z+y)),translate(x,Y=y-f%60,z),pop(box(Y/6))};//#つぶやきProcessing