つぶやきProcessing (2024/12/10)
https://gyazo.com/67aba08bfce7edd69c78aa28ca5c613f https://gyazo.com/4ff3209450e99946fb706401a5994a9a https://gyazo.com/9b4801aa4503dd61c9c69345836297e1
https://scrapbox.io/files/675718f09c92a9fb59455187.mp4
code:processing
//#つぶやきProcessing
float r, i, a, b, t, x, y, c=5, d=2, f=400, n;
void setup() {
size(800, 800);
}
void draw() {
for (x=-f; x<f; x++)for (y=-f; y<f; y++) {
r=i=n=0;
a=x/f-1;
b=y/f;
while ((r*r+c*c*c*i*i<4)&n<256) {
t=r*r-i*i+a;
i=d*r*i+b;
r=t;
n++;
}
stroke(sq(n)%256);
point(x+f, y+f);
}
if (c>-5)c-=.1;
else d*=1.01;
}