← Blog

2026.11.18 · 1 min read

Flowers made of numbers

Notes on the generative piece on the home page: phyllotaxis, glyph atlases, and a single instanced draw call.

generativewebglshaders

The home page grows a small garden out of digits, words, and letters from the world's alphabets. Each flower is a single idea from botany, phyllotaxis, rendered with a texture atlas and one instanced draw call.

The golden angle

Sunflower seeds sit on a spiral where each new seed is rotated by the golden angle, roughly 137.5°, and pushed out by the square root of its index:

const GOLDEN_ANGLE = Math.PI * (3 - Math.sqrt(5));
 
for (let i = 0; i < seeds; i++) {
  const angle = i * GOLDEN_ANGLE;
  const radius = 0.045 * Math.sqrt(i);
}

Every seed here is a digit. The petals are words like tensor, latent, and entropy written along a curved path.

One draw call

All glyphs live in one canvas-generated atlas. Each instance carries its flower, angle, radius, and two glyph indices. The vertex shader handles blooming, withering, and the pointer field, so the CPU does no per-frame work beyond updating a few uniforms.

Move your cursor through a flower. The digits turn into math symbols, and the words into Greek, Cyrillic, Hebrew, Armenian, Georgian, Arabic and Devanagari letters.