回転 (2024/11/8)
https://gyazo.com/84031d76b4935dcf3adbce752f9a634d https://gyazo.com/374295e3ec828b6f52c640d09b6c0f85 https://gyazo.com/a0ac87187e31de0be453aa82676cb37f
https://scrapbox.io/files/672ce20a068e65f05902954e.mp4
code:processing
//#Processing
int n=99, i, s, k;
float a[]=new floatn*2, d, m, q, r, f=400; void setup() {
size(800, 800);
for (i=0; i<n; i++) {
}
background(0);
colorMode(3);
}
void draw() {
fill(0, 3);
square(0, 0, 800);
fill(-1);
for (i=0; i<n; i++) {
m=9999;
for (s=i+1; s<n; s++) {
d=dist(q*sin(r), q*cos(r), as+n*sin(as), as+n*cos(as)); if (d<m) {
m=d;
k=s;
}
}
stroke(ai+n, 255, 255, 255-m); line(f+q*sin(ai+=sin(TAU*noise(r, q))/99), f+q*cos(ai), f+ak+n*sin(ak), f+ak+n*cos(ak)); noStroke();
circle(f+q*sin(r), f+q*cos(r), 9);
}
}