深海の巨大な何か (2024/11/5)
https://gyazo.com/d885d8f2d948b6f145761cd34dd24020 https://gyazo.com/e828c16813c23e7a5ffe32f943aa983f https://gyazo.com/8a6c1f6ee5b779e213e6ce515c1f89fd
https://scrapbox.io/files/6728ecb8ab09cab50e1a2e18.mp4
赤くして目もつけて邪悪な蛸みたいな感じにしようかなあ...とも思ったけど、とりあえずシンプルな感じで。
code:processing
//#Processing
int i, n=9999;
float a[]=new floatn*2, d, r, t; void setup() {
size(800, 800, P3D);
for (i=0; i<n; i++) {
ai=(d=random(400))*sin(r=random(TAU)); }
}
void draw() {
background(0);
camera(300, 900-t*99, 200, 0, 0, -99, 0, 0, -1);
noStroke();
fill(-1, 60);
for (i=0; i<n; i++) {
push();
translate(ai, ai+n, 50*sin(ai/99+t)*cos(ai+n/99+t)-sq(mag(ai, ai+n))/999); rotate(TAU*noise(ai/99, ai+n/99, t)); rect(0, 0, 50*noise(ai/99), 50*noise(ai+n/99)); pop();
}
t+=.01;
}