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

can this library provide conversion to xyY color space as well #80

Open
smmehadi opened this issue Mar 20, 2020 · 2 comments
Open

can this library provide conversion to xyY color space as well #80

smmehadi opened this issue Mar 20, 2020 · 2 comments

Comments

@smmehadi
Copy link

We are planning to use this library for color conversions and it looks great, the only missing part is it doesn't provide conversion to xyY color space.
please include that.

@RobinBol
Copy link

RobinBol commented Mar 27, 2020

I am looking for that functionality as well!

It is relatively easy to convert XYZ to xyY, and since this library provides XYZ -> RGB you can basically do anything once you converted XYZ to xyY.

x = X/(X+Y+Z)
y = Y/(X+Y+Z)
Y = Y

Source: http://www.brucelindbloom.com/index.html?Eqn_XYZ_to_xyY.html

@Qix-
Copy link
Owner

Qix- commented Mar 27, 2020

Feel free to submit a PR :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants