markkness / ColorPy

Physical color calculations in Python.
GNU Lesser General Public License v2.1
33 stars 17 forks source link

Add support for conversion between RGB color spaces #25

Open dkirkby opened 7 years ago

dkirkby commented 7 years ago

It would be useful to be able to convert between two different RGB color spaces, but it looks like this isn't currently possible since the colormodels.init() function uses globals so only one space is defined at any time. In particular, I would like to convert between sRGB (the default) and a custom RGB space for a specific RGB LED.