Day 40

Reality Eyedropper

An eyedropper for the physical world. Hold any real object up to your camera — a leaf, a mug, your shirt — and pick its colour. Build a palette from the room around you and watch it theme a UI live.

getUserMediaColour SamplingOKLCHPalette BuilderCamera Input
Sample still life

Tap anywhere to sample. Tap the reticle (or press Space) to capture into slot 1, primary.

Uses your camera to read colours. Frames are processed on this device and never leave it.

Space capture1–5 slot←→↑↓ moveEsc liveD debug
Palette
Five captures, five tokens. Drag swatches to reassign them.

Themed preview

Press Space or Enter to capture the colour under the reticle. Arrow keys move the reticle, with Shift for bigger steps; Home recentres it. Escape returns to the live view. Keys 1 to 5 choose the palette slot.