fractal_Mathober
function setup() {
createCanvas(600, 600);
angleMode(DEGREES);
}
function draw() {
fill(255,255,250,70)
background(0);
translate(width/2,width/2);
r = 45;
d = width;
s = r*frameCount/10000
rotate (s)
for (let i = 0;i<20;i++){
iteration(d,r)
d = d*0.705;
r = (r+45)+s*i*45/2;
}
}
function iteration(d,r){
push()
rotate(r)
arc(0, 0, d, d, 180, -270)
line(-d/2,0,0,-d/2)
line(0,-d/2,d/2,0)
line(d/2,0,0,d/2)
pop()
}