Something went wrong. Try again.
Something went wrong. Try again.
Refactor Oklab gamut-mapping helpers to module-level functions
Moves `cusp_for_hue`, `max_chroma_at_lightness`, `toe`, and `toe_inv` from `Oklab` inherent methods to free functions in the `oklab` module. These utilities are shared across Okhsl and Okhsv and are not specific to the Oklab struct itself. Call sites in `okhsl.rs` and `okhsv.rs` now import and call the free functions directly instead of going through `Oklab::`.
Author
aaronmallen.dev Date (Feb 11, 2026, 1:56 PM UTC) Commit
Copy SHA
Parent 5f7abba7 5f7abba7221f78d0089d0d804806b802fa916f90 Change ID Copy change ID