fractalkitty looking for math? fractalkitty.com

Genuary 2026

Genuary Day 3

#trig#animation#math#number-theory#genuary

fibs

let d = 100000;
let t = 0;

function setup() {
  createCanvas(600, 600);
  background(255);
  fill(80, 160, 180, 10);
  stroke(80, 160, 180);
  rectMode(CENTER);
  describe(
    "fibonacci number sized squares nested and zoomed out and in and rotated to look like teal shaded sticky notes"
  );
}

function draw() {
  t += 0.001;
  background(255, 255, 255, 20);
  d = 1 + abs(5000 * Math.sin(t));
  translate(width / 2, height / 2);
  for (let i = 0; i < fibs.length; i++) {
    rotate((i * t) / 100);
    rect(0, 0, fibs[i] / d);
  }
}
let fibs = [
  0,
  1,
  1,
  2,
  3,
  5,
  8,
  13,
  21,
  34,
  55,
  89,
  144,
  233,
  377,
  610,
  987,
  1597,
  2584,
  4181,
  6765,
  10946,
  17711,
  28657,
  46368,
  75025,
  121393,
  196418,
  317811,
  514229,
  832040,
  1346269
];