njsmith / colorspacious

A powerful, accurate, and easy-to-use Python library for doing colorspace conversions
MIT License
171 stars 16 forks source link

Negative values for sRGB255? #27

Open hydrargyrum opened 2 years ago

hydrargyrum commented 2 years ago

Is that expected?

>>> colorspacious.cspace_convert([(50, 50, 180)], "CIELCh", "sRGB255")
array([[-215.62190917,  139.1616917 ,  117.6047423 ]])
dreamlayers commented 8 months ago

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.