Aquarium Toggle x Claude

A day/night switch built as a glass pill with a living pixel-art aquarium inside, centred in a room whose colour follows the light. The big glass bubble is the knob: it magnifies the tank under it like a lens. Click it or drag it and the light follows its position: the lamp dims through a warm dusk, the moon LEDs come on and the tank goes dark. The brass diving helmet’s porthole lights up, the snail comes out of its shell, and the plankton glows cyan and flares when the bubble or a fish rushes past. The fish school after the bubble, the plants bend in its wake, and the layers shift with your pointer. By day, air bubbles rise from the sand and gather into a sun etched on the back glass; at night it breaks up into plankton that settles as a moon. The 144 × 76 world is drawn in code 30 times a second with every colour dithered between four light keys, and one WebGL2 shader draws the glass, the wobbling lens and its coloured shadow, so there are no images or fonts to load. It’s a real switch for the keyboard and screen readers, opens on night for dark-mode visitors and holds still for reduced motion. Hook your theme change into one function; recolour every material in one palette file. Add ?demo=1 for a scripted pointer that clicks to night and drags back to day, with window.__render(t) for frame-exact video export.
Retour en haut