捕食しそうな3次曲線 (2026/6/9)
https://gyazo.com/433f426c566233f42ed5fc751c0d2143 https://gyazo.com/14f0ecd454a1fbca51b97d31dbce1dd2 https://gyazo.com/5efb9c7c4032f1e664101a4c59f655a4
https://scrapbox.io/files/6a2814c8601c8b4efdd4a13b.mp4
code:processing
//#Processing
float x, r, h, t;
void setup() {
size(800, 800, P3D);
}
void draw() {
background(0);
noFill();
camera(999, 999, 999*cos(t/2), 0, 0, 0, 0, 0, -1);
for (r=0; r<TAU; r+=PI/9) {
beginShape();
for (x=99*(cos(t)-1); x<800; x+=9) {
stroke(-1);
vertex(x*sin(r), x*cos(r), h=pow(x+500*cos(t)-300, 3)/5e5);
if (r==0&&x>0) {
stroke(-1, 300-x/2);
push();
translate(0, 0, h);
circle(0, 0, x*2);
pop();
}
}
endShape();
}
t+=.01;
}