1 Commits
Author SHA1 Message Date
Gabriel Fontes 91acfeba28 feat(lib): add pure-Nix HCT (CAM16 + HctSolver)
Port material-color-utilities' color pipeline to Nix: sRGB<->CAM16<->HCT with
the full HctSolver (findResultByJ Newton step + bisectToLimit over the 255
critical planes). hctFromHex/hexFromHct round-trip bit-exact across a 125-color
grid, including saturated colors that hit the bisect fallback. Constants ported
from the canonical TypeScript reference.

Brick 2 of the pure-Nix matugen effort. Standalone lib, not yet wired in.

Assisted-by: pi (opus-4.8)
2026-07-04 17:28:10 -03:00