回転 (2025/10/5)
https://gyazo.com/adaff33dc53f4b5ca756f5939623229a https://gyazo.com/061707d95e99be983d96ff81a4b72762 https://gyazo.com/f713b4589a88b53d0e2a221515712156
https://scrapbox.io/files/68e27b7487417e529b51829a.mp4
code:processing
//#Processing
int n=30000, i;
float a[]=new floatn*2, d, r, p, t; void setup() {
size(800, 800);
for (i=0; i<n; i++) {
d=99*randomGaussian();
r=random(TAU);
}
background(0);
}
void draw() {
fill(0, 9);
square(0, 0, 800);
stroke(-1);
for (i=0; i<n; i++) {
d=9999/sq(mag(ai, ai+n)); for (p=0; p<TAU; p+=PI/3) {
d=999/sq(dist(ai, ai+n, t*sin(p), t*cos(p))); r=atan2(ai+n-t*cos(p), ai-t*sin(p)); }
}
t++;
}