mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-26 10:47:11 -06:00
With the Document Library palette, each pixel took the library color nearest in plain Oklab distance. A 50% gray lies nearer in that distance to a saturated blue of the same lightness than to black or a light cream, and a muted brown is also nearer to the blue than to either. With a black, cream and blue library, both traced as the blue. This changes how Document Library matches pixels: each pixel now takes the library color nearest with differences in hue and chroma (Oklab a and b) counted three times as much as lightness. The same measure picks which library colors are used. Neutral and muted tones take a neutral library color, and the other palettes are unchanged.