Repository navigation
v0.1: the Studio
The first release of Palette Atlas: the Studio, live at palette-atlas.pages.dev.
Turn any image into a strip of color. Everything runs in your browser; your images never leave your computer.
What's in it
- Any image in: drag and drop anywhere on the page, choose a file, paste, or pick one of four famous public-domain paintings from the sample wall (the Mona Lisa, A Sunday on La Grande Jatte, The Bedroom, The Great Wave), each hung in a flat version of its museum's frame.
- Four ways to read it: by color (the image's palette along its shortest path), along a Hilbert curve, in columns, or in rings from the center out. Each strip has 128 stripes, every one the true average light of its pixels.
- Hover linking: point at a stripe to uncover the pixels it came from; point at the picture to pin the stripe a pixel went into. Works by touch on phones.
- Export: save the strip as a 2400 × 3600 poster, framed and captioned, or as a phone wallpaper.
- Never freezes: decoding and reading run in a Web Worker, and every failure ends in a clear message.
- A bold, poster-like look: cream paper, ink outlines, hard shadows and big heavy type, on desktop and phone alike.
Under the hood
- A color library: averaging in linear light, OKLab, k-means palettes that grow until they cover their image, and palette ordering by an exact TSP (Held-Karp).
- A strip engine in which every stripe remembers its source pixels, with a Hilbert curve for images of any shape.
- The same code draws the strips in the browser and in Node: UI tests check the browser's strips against the pipeline's reference strips pixel for pixel, and they match in Chromium, Firefox and WebKit.
- Every green push to
maindeploys to Cloudflare Pages from CI.
Credits
The sample paintings are in the public domain: the Mona Lisa (Louvre) by way of Wikimedia Commons, and A Sunday on La Grande Jatte, The Bedroom and The Great Wave courtesy of the Art Institute of Chicago (CC0).