Alexis Mabanza @ alexvolkihar.ovh

Mosaic

Stained glass cut from a relaxed Voronoi diagram

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.

All series
0x162ef48a…5856
Palette CathedralPattern RingsCells MediumLead ClassicLight Glow
0x35df5303…4e34
Palette PastelPattern BandsCells FewLead HeavyLight Flat
0x6e006efd…7012
Palette NightPattern BandsCells MediumLead HeavyLight Glow
0x96f2f363…c44a
Palette EmberPattern RingsCells MediumLead ClassicLight Backlit
0x7268af88…0ab2
Palette SeaPattern RingsCells MediumLead ClassicLight Glow
0xb900191a…330d
Palette PastelPattern ScatterCells FewLead ClassicLight Glow
0xd915b16e…3a49
Palette PastelPattern RoseCells MediumLead ClassicLight Flat
0xccacfafa…e64a
Palette NightPattern RaysCells ManyLead ThinLight Flat
0xb0272b5d…1969
Palette VerdigrisPattern BandsCells ManyLead ThinLight Flat
0xd2309ebb…83d1
Palette CathedralPattern ScatterCells FewLead HeavyLight Flat
0xecc36cad…b289
Palette VerdigrisPattern RingsCells MediumLead ClassicLight Flat
0x04c70514…e8d5
Palette EmberPattern ScatterCells MediumLead ClassicLight Backlit

Traits

The weights were set before any drawing code was written. They were then checked against a census of 2,000 seeds.

TraitValues (weight)
PaletteCathedral 24 · Sea 20 · Ember 16 · Pastel 16 · Night 14 · Verdigris 10
PatternScatter 22 · Rings 24 · Rays 20 · Bands 20 · Rose 14
CellsFew 25 · Medium 50 · Many 25
LeadThin 30 · Classic 45 · Heavy 25
LightFlat 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.

Artworks © Alexvolkihar, licensed CC BY-NC-ND 4.0. Code under the repository licence (MIT).


>