Skip to content

v1.0: the Lab

Latest

Choose a tag to compare

@itzik123 itzik123 released this 11 Oct 10:35
· 5 commits to main since this release

The first full release of Palette Atlas: the Lab joins the Studio and the Atlas, and the code is now open source. Live at itzik123.github.io/PaletteAtlas.

Everything still runs in your browser; your images never leave your computer.

What's new

  • The Lab: the very search that found an image's paintings, replayed down the five layers of the index. Every painting is a dot of its own color on a map of the gallery, a magnifier follows the search across the bottom layer, and the 10 nearest it found are checked against measuring every painting. Every wall of matches leads there by "How they were found".
  • Keyboard and screen readers: whatever a pointer does, a keyboard does too. The Studio's strip and a Career Barcode step stripe by stripe and bar by bar, a painting's picture enlarges with Enter, and every page passes axe-core's WCAG 2.2 AA checks, on laptops and phones. Where the system asks for less motion, the Lab opens still, on the search's end.
  • Faster loading: on a slow phone connection, a painting's picture arrives in 5.6 s rather than 11.5, its page downloading 1.6 MB rather than 9.2, and a wall of matches shows its first screen in 17 s rather than 83.
  • Phones: every page and state checked from 320 to 430 px wide, upright and on its side, and on a tablet.
  • Open source: the code under the MIT License, and a GIF of each part in the README.

Under the hood

  • The search trace: the index reports every step a search takes to a tracer, which the Atlas's searches leave silent at no cost; the Lab records one and replays it.
  • Landmarks on the top layer: every search now starts among the most typical paintings of 8 color families, rather than 2 drawn at random, at the same cost and with the same answers.
  • The paintings' map: the two directions in which the paintings' color schemes differ most (92.5% of the variance), on which the Lab places every painting and a visitor's image.
  • Each painting's nearest, stored: the pipeline writes each painting's first 60 matches, so its page needs no search index, and the gallery comes in chunks of 100 paintings rather than 1,000.
  • Faster palettes: k-means keeps bounds on each pixel's distances to the palette (Hamerly, 2010), reading the same palettes in half the time; the Lab draws a replay frame in a quarter of the time.

Credits

The paintings are catalogued by Wikidata, and their images come from Wikimedia Commons, every one marked public domain or CC0 there; each painting's page credits its artist, title, date and collection. The Studio's samples are the Mona Lisa (Louvre, by way of Wikimedia Commons) and three CC0 works from the Art Institute of Chicago. The ray-traced renders in benchmark/ and the README's GIFs are under CC BY 4.0.