Colour Science for Python
colour-science.org
colour-science.org
Any chance of a C or C++ implementation?
If there’s something specific you need, some of the algorithms have some fiddly parts, but there’s not too much that’s fundamentally difficult to implement in any of them. Any particular part should only take a day or two to build for some one-off use case.
Has a lot of the same conversions/comparisons/color spaces, excellent test coverage, and in my own biased opinion, pretty good documentation.
import colour as colorFor example, I was looking for a way to find "perceptual distance" between colours, since the standard RGB rainbow gives more space for green than, say, yellow. Turns out there are colour spaces for that: CIELAB and CIELUV! However, converting between these spaces and RGB is... fun.
(also, a fun way to tick off your illustrator friends is to install F.Lux on their computer)
Thank you for this great library!
I would also like to add that most of the publications are very highly priced which make them not easily accessible.
I had to buy a few of them and an account on OSA for a few hundreds dollars.
If you guys are ever in the SF Bay Area, shoot me a note and I’ll buy you a coffee.
(For people looking for JavaScript implementations, I put a CIECAM02 implementation and some other stuff at https://github.com/jrus/chromatist)