mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-14 15:57:49 +00:00
The Limited palette's median cut ranks cuts by pixel-weighted gain. A large near-black ground with faint noise therefore took two colors less than 0.02 apart in Oklab, and the trace drew blotches of one over the other. With 9 to 16 colors, a cut whose two sides both have a dark gray mean (Oklab lightness under 0.30, chroma under 0.03) and lie less than 0.03 apart now has its gain scaled by (distance / 0.03)^2 while the cut is chosen. The ground keeps one color, and the color it would have taken goes to another cut. Document Library without swatches follows Limited. Other color counts, Full Tone and Automatic choose the same cuts as before.