南総里見八犬伝 (2025/10/6)
https://gyazo.com/8b2a76822298fbeea11d1aabec166d57 https://gyazo.com/a65f9930ad7cdc66f93a5de7dd99c29a https://gyazo.com/9331369a064b53f72bcdbfd866906414
https://scrapbox.io/files/68e3ab725aa47bfb6c2d375c.mp4
仁・義・礼・知・忠・信・孝・悌!
code:processing
//#Processing 南総里見八犬伝
int n=30000, i;
float a[]=new floatn*2, d, r, p, t; PFont f;
String s="仁義礼智忠信孝悌";
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(-1, -1, 802);
stroke(-1);
translate(400, 400);
for (i=0; i<n; i++) {
d=9999/sq(mag(ai, ai+n)); for (p=0; p<TAU; p+=PI/4) {
d=999/sq(dist(ai, ai+n, t*sin(p), t*cos(p))); r=atan2(ai+n-t*cos(p), ai-t*sin(p)); }
}
f=createFont("BiauKaiHK-Regular", t/4+1);
textFont(f);
fill(#FFFF00);
for (i=0; i<8; i++) {
p+=PI/4;
text(s.substring(i, i+1), t*sin(-p)-t/10, t*cos(-p)+t/10);
}
t++;
}