Ship chambers, fully procedural: foam voronoi rooms, an art-deco component per room
(superformula + fBm value-noise, dark jewel body + gold so it reads by value), and physical
light sources grown from the walls (sconce / coral / crystal) glowing the chamber hue. The light is
ray-traced through the tiling — it pools in its room and spills through doorways, with real wall shadow.
Roll the combinatorics.
voronoi.js (vendored foam painter) · deco.js (superformula + fBm
components) · lights.js (wall-grown emitters + ray-traced occlusion: an Amanatides-Woo voxel
walk over a rasterised wall grid; colour accumulates per visible emitter so doorways catch a neighbour's hue).
Hue correlates per chamber (light ↔ component); contrast is value + shape + gold. Pure & node-tested
(test/lights.selftest.mjs). Drop-in for hoop: bake over the chamber's existing paintCells.