内接円 (2024/10/30)
https://gyazo.com/a87bf7882119ba4f3819ee138df94ce6 https://gyazo.com/022a0b6eea8bd7001e463d1986995850 https://gyazo.com/c4c7c525549d30fac13911d60b5b59ba
https://scrapbox.io/files/67225215f54e6daf4a7e08a3.mp4
code:processing
//#Processing
float t, s=sqrt(2);
void setup() {
size(800, 800);
}
void draw() {
background(0);
stroke(-1);
noFill();
a(400, 400, 400, 1);
t+=.01;
}
void a(float x, float y, float d, float f) {
if (d>4) {
push();
translate(x, y);
circle(0, 0, d*2);
rotate(t*f);
for (int n=0; n<4; n++) {
rotate(PI/2);
a(0, sin(t)*d*s/(1+s), d/(1+s), f*=-1);
}
pop();
}
}