let iter = 2000;//iterations
let angle = 137.5077;
let circleSize = 3;
let t= 0;
let p = 1;
function setup() {
cnv = createCanvas(1000, 1000);
angleMode(DEGREES);
}
function draw() {
cnv.translate(1000/ 2, 1000 / 2);
rotation = angle;
distance = 1;
delta = 1;
background(255);
ellipse(0,0,circleSize,circleSize);
for (let i = 0; i <= iter; i++) {
createFractal(rotation, distance);
rotation += angle;
distance += delta;
fill(0, 0, 0);
}
}
function createFractal(_rotation, _distance) {
push();
rotate(_rotation);
ellipse(_distance, 0,circleSize,circleSize);
pop();
}