脱出 (2025/10/12)
https://gyazo.com/be8a3bc088e4659dc71876211f20a957 https://gyazo.com/0451db148addfbf93eb2fc90bb5a0513 https://gyazo.com/86a2f7df528d57ab434c2b99ee9be895
https://scrapbox.io/files/68eb8d69c6942f41159fc329.mp4
code:processing
//#Processing
int n=999, i, s, p, q, r;
float a[]=new floatn*2, d, e, f, g, t=800; void setup() {
size(800, 800);
for (i=0; i<n; i++) {
}
}
void draw() {
background(0);
translate(400, 400);
fill(255-t/3, 0, t/3, t+200);
stroke(-1, t+200);
circle(0, 0, t-=2);
for (i=0; i<n; i++) {
e=f=g=9999;
p=q=r=0;
for (s=0; s<n; s++) {
if (i!=s) {
if (d<e) {
g=f;
f=e;
e=d;
r=q;
q=p;
p=s;
} else if (d<f) {
g=f;
f=d;
r=q;
q=s;
} else if (d<g) {
g=d;
r=s;
}
}
}
w(i, p);
w(i, q);
w(i, r);
ai+n=(ai+n+constrain(500/sq(mag(ai, ai+n)), 0, .1))%TAU; }
t+=PI/2000;
}
void w(int j, int k) {
}