mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 05:52:09 +00:00
The first chroma search in largest_fitting_chroma ran from 0 to 0.5 and could land on the line from black to blue above the chroma asked for. The result then fell back to the asked chroma, which lies outside sRGB, and from_oklch clipped it, changing the lightness and hue. The search now stops at the asked chroma, so the chroma it finds always fits. The parity doc now says color.convert's OKLCH matches the rows only for a color inside sRGB, since it clips the display RGB first.