Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HSLuv #51

Merged
merged 5 commits into from
Jan 27, 2021
Merged

HSLuv #51

merged 5 commits into from
Jan 27, 2021

Conversation

makew0rld
Copy link
Collaborator

This PR adds support for the HSLuv color space and its variant, HPLuv. This fixes #41. It also adds support for LCh(uv), as HSLuv requires that.

Importantly, it changes some other things that were required to get all HSLuv tests to pass.

  • Linear RGB <--> XYZ uses more accurate matrix values
  • A bug with XYZToLuvWhiteRef was fixed, where a constant wasn't divided by 100

All new functions have tests, in line with the rest of the library. HSLuv has its own test suite, provided by the creator.

One color value had to be changed to work with the more accurate matrix values, all others passed tests unchanged.

@makew0rld makew0rld mentioned this pull request Jan 23, 2021
@makew0rld makew0rld merged commit 4380d76 into lucasb-eyer:master Jan 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for HSLuv
1 participant