fractalkitty looking for math? fractalkitty.com

Genuary 2026

Genuary Day 1

#random#trig#spiral#genuary

diameter



let c;
let n = 6;

function setup() {
  createCanvas(600, 600);
  background(255);
  fill(80, 160, 180, 50);
  noStroke();
  c = random(1);
  describe("a spiral made of small dots forming recursive teal arcs");
}

function draw() {
  translate(width / 2, height / 2);

  for (let i = 0; i < 2000; i++) {
    let x1 = (width / 3) * cos((c * i) / 100);
    let y1 = (((randomGaussian(1, 0.9) / 4) * width) / 3) * sin((c * i) / 100);
    let diameter = randomGaussian(1, 0.9) / 4;
    for (let j = 1; j < n; j += 0.5) {
      push();
      rotate((j * TWO_PI) / n);
      circle(x1 / j, y1 / j, diameter / j);
      pop();
    }
  }

  if (frameCount >= 100) {
    noLoop();
  }
}