Seed points are scattered over the window, more of them where the motif needs fine pieces, then nudged a few times towards the centre of their own cell until the pieces even out. Each cell becomes a piece of glass, its edges slightly bowed as if cut by hand. The colour of every piece comes from a larger pattern, a rose, a sunburst, rings, bands or loose patches, so a picture still reads from across the room. Light passes through each piece as a soft gradient with faint streaks and bubbles, and dark lead came with soldered joints holds it all together. Press New seed for a fresh hash, then share the URL to show someone that exact piece.
Traits
The weights were set before any drawing code was written. They were then checked against a census of 2,000 seeds.
| Trait | Values (weight) |
|---|---|
| Palette | Cathedral 24 · Sea 20 · Ember 16 · Pastel 16 · Night 14 · Verdigris 10 |
| Pattern | Scatter 22 · Rings 24 · Rays 20 · Bands 20 · Rose 14 |
| Cells | Few 25 · Medium 50 · Many 25 |
| Lead | Thin 30 · Classic 45 · Heavy 25 |
| Light | Flat 30 · Glow 45 · Backlit 25 |
Credits
- Cells: the Voronoi diagram (Georgy Voronoi, 1908), computed by clipping each cell against the perpendicular bisectors of its neighbours (Sutherland & Hodgman, 1974), with neighbours found through a uniform grid.
- Relaxation: Lloyd’s algorithm (Stuart Lloyd, "Least squares quantization in PCM", 1982), with centroids weighted by a density so that small pieces gather around the motif.
- Randomness: sfc32 by Chris Doty-Humphrey. The hash seeding, named sub-streams and verification follow Camille Roux’s genart skill (MIT).
- The palettes are original. The code was written with an AI assistant. It draws everything itself: no AI-generated images.