Generative Geometry
Poisson Disk Bloom
Gold Poisson-disk points bloom from center on dark olive, linked by a Gabriel graph. Each vertex flashes on arrival; click re-seeds, pointer plants new nodes.
canvasheavy complexitymoderate motionpointer
Open on the canvas to copy the code → Free account · 3 copies a day · membership goes unlimited
Worth keeping?
Votes steer what gets built next — sign in to cast one, free to read
When to use it
Ambient generative backgrounds, data-viz aesthetics, creative portfolio heroes where organic graph growth fits the brand.
When not to
Low-end mobile (CPU-bound edge draw). Contexts needing legible text overlays — additive blend competes with content.
Working with an AI agent
Every component ships agent-ready metadata. An example instruction for this one:
Change accent to cyan by setting ACC=[80,220,220], tighten spacing by changing the radius divisor from 13 to 9, and lower the cap from CAP=1100 to CAP=600. Theme: dark tokens live in :root, the light variant in :root[data-theme="light"]; ?theme=light or a {type:'forever:theme'} postMessage switches at runtime.
Safe to edit
- accent color (ACC array)
- spacing radius divisor (Math.min(W,H)/13)
- point cap (CAP=1100)
- bloom flash duration (age<46)
- auto-reseed interval (t%140)
- theme tokens (:root dark defaults + [data-theme=light] overrides)
Keep intact
- IIFE wrapper
- prefers-reduced-motion guard + staticFrame fallback
- visibilitychange pause/resume
- gabriel() geometry test
- theme hook (?theme= bootstrap + forever:theme message listener + theme tokens)
Known limitations
- CPU-bound per-frame edge traversal — perf degrades above ~800 points on low-end devices
- Background color hardcoded in both CSS and canvas fill — must change both to retheme
- Gabriel check scans only a 5x5 cell neighborhood; rare long edges may slip through on sparse layouts
More Generative Geometry components
- Voronoi Shatter14 drifting sites partition the canvas into cool-blue Voronoi mosaic cells; moving the pointer nudges the nearest site toward the cursor.
- Auto-MazeDepth-first maze carves itself wall by wall on a dark grid with shifting hue; a bright dot marks the active cell. Resets with a new color on completion.
- Truchet Tiles8x8 grid of rainbow quarter-arc Truchet tiles that flip orientation in slow sine waves, weaving shifting interlocked curves across a dark background.
- SpirographA hypotrochoid spirograph traced progressively on canvas with a shifting hue; each cycle completes then resets with new random radii and color.
- L-System PlantAn L-system fractal plant grows branch by branch from the canvas bottom, swaying gently; clicking triggers a wobble and regrows a randomized plant.
- Rotating Mandala12-fold mandala of 5 nested polygon rings that counter-spin, breathe in scale, and cycle through lilac-gold hues. Tap adds a spin impulse.