秋色 (2025/9/29)
https://gyazo.com/14fa5b30d7c9dede12cd4b026866dcf1 https://gyazo.com/cbfafa88c06e811b644dd554cf4ab252 https://gyazo.com/cd6d9fc1740dbda8f836bc64678069c4
https://scrapbox.io/files/68d950b326dc9421a0475df8.mp4
https://x.com/hisadan/status/1972318437201625355
https://x.com/hisadan/status/1972318439135236204
code:processing
//#Processing
float i, t;
void setup() {
size(800, 800);
}
void draw() {
background(#FFEE88);
fill(#FF0000);
translate(400, 400);
for (i=0; i<4; i++) {
rotate(PI/2);
a(150);
}
t+=.01;
}
void a(float d) {
float r;
if (d>9) {
push();
line(0, 0, 0, r=d*sin(t));
circle(0, r, 9);
translate(0, d);
rotate(-PI/4);
a(d/(2+(r=.7*sin(t))));
rotate(PI/2);
a(d/(2-r));
pop();
}
}