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

fix: better precision on xyz/srgb conversion #77

Merged
merged 1 commit into from
Jan 9, 2020

Conversation

Ignigena
Copy link
Contributor

@Ignigena Ignigena commented Dec 2, 2019

When converting back and forth between XYZ and RGB colour spaces, there is some loss of precision. This is particularly noticeable with multiple conversions and when using the .raw output.

Currently, the library uses a precision level of 4 fractional digits for this conversion. I've updated to use the full 7 fractional digits as defined here: http://www.brucelindbloom.com/index.html?Eqn_RGB_XYZ_Matrix.html

@Qix- Qix- merged commit 3f0e0d4 into Qix-:master Jan 9, 2020
@Qix-
Copy link
Owner

Qix- commented Jan 9, 2020

Thank you :)

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.

2 participants