palettecore 0.2.2
Audit-correctness release, prompted by an external review. No changes to palette generation: the same seeds produce the same hex codes as 0.2.1.
- Diagnostics now describe the returned colours. Every audit number is computed on the 8-bit quantised colours actually returned as HEX, never on internal floating-point values. Previously quantisation could flip results near a threshold (e.g. #86DC0A, n=12, sequential reported deuteranopia 6.0 with no warning while the returned colours recompute to 5.9, below the threshold).
- anchor="exact" now also snaps diverging palettes to the seed (was silently sequential-only).
- Input validation for
use, threshold names, and threshold values - a typo no longer looks like a clean audit. - Diverging palettes require n >= 3 and report a structure diagnostic (arms monotonic, centre interior).
- CI on push/PR: Python 3.10-3.14, build + twine check, R parity, R CMD check. 93 tests; R parity 9/9 hex-exact.