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

Negative values for sRGB255? #27

Open
hydrargyrum opened this issue Jan 22, 2022 · 1 comment
Open

Negative values for sRGB255? #27

hydrargyrum opened this issue Jan 22, 2022 · 1 comment

Comments

@hydrargyrum
Copy link

Is that expected?

>>> colorspacious.cspace_convert([(50, 50, 180)], "CIELCh", "sRGB255")
array([[-215.62190917,  139.1616917 ,  117.6047423 ]])
@dreamlayers
Copy link

Many colours cannot be represented in sRGB. Take a look at this Wikipedia image showing the sRGB triangle, Colours outside of that triangle could only be represented using negative values.

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

No branches or pull requests

2 participants