fractalkitty looking for math? fractalkitty.com

Genuary 2026

Genuary Day 4 and 5

#random#trig#animation#number-theory#spiral#letters#genuary

genuary


let t = 0;

function setup() {
  createCanvas(600, 600);
  background(255);
  fill(80, 160, 180, 20);
  stroke(80, 160, 180, 50);
  strokeWeight(10);
  c = random(1);
  describe(
    "genuary spelled with a sequence of arc and then rotated and scaled in a spiral so the smallest are at the center. they rotate with a go-stop-go motion and blur while they move - smearing the canvas. "
  );
  d = width / 9;
}

function draw() {
  t += 0.001 * abs(cos(frameCount / 100));
  background(255, 255, 255, 5);
  for (let i = 1; i < 15; i++) {
    push();
    translate(width / 2, height / 2);
    scale(i / 20, i / 20);
    translate(i * 5 * sin(i), 0);
    rotate((PI / 5) * i + t);

    genuary();
    pop();
  }
}

function genuary() {
  arc(d, height / 2, d, d, 0, (3 * PI) / 2);
  arc(d * 2, height / 2, d, d, PI / 3, 2 * PI);
  arc(d * 3, height / 2, d, d, PI / 2 + PI / 4, PI / 2 - PI / 4);
  arc(d * 4, height / 2, d, d, (3 * PI) / 2 + PI / 4, (3 * PI) / 2 - PI / 4);
  arc(d * 5, height / 2, d, d, 0, 2 * PI);
  line(d * 5 + d / 2, height / 2 - d / 2, d * 5 + d / 2, height / 2 + d / 2);
  arc(d * 6, height / 2, d, d, PI, 2 * PI);

  arc(d * 7, height / 2, d, d, 0, PI);
  line(d * 7 + d / 2, height / 2, d * 7 + d / 2, height / 2 + d);
}