無題 (2025/9/26)
https://gyazo.com/b7e07dec3ae752f2ecc7053d70dbd70e https://gyazo.com/50220595a8834a4ea8390d57c60e2747 https://gyazo.com/af108801d7407749bf3442e548e4c6a1
https://scrapbox.io/files/68d55cbcc6b52355217e00a2.mp4
https://x.com/hisadan/status/1971231882248585446
https://x.com/hisadan/status/1971231884354158784
つぶやきProcessing (2025/9/25) を小改造して単純に3D化。
code:processing
//#Processing
float n=6, i, k, d, r, t;
void setup() {
size(800, 800, P3D);
}
void draw() {
background(-1);
camera(400*sin(t), 400*cos(t), 900, 0, 0, 0, 0, 0, -1);
for (k=0; k<2000; k+=50) {
beginShape();
for (i=0; i<n+3; i++) {
d=i%2*k*cos(t+PI/2)+k*sin(t+PI/2);
curveVertex(d*sin(r=i*TAU/n), d*cos(r), -k);
}
endShape();
}
t+=.02;
if (t>PI) {
t=0;
n+=2;
}
}