Open bobbyduhbrain opened 10 years ago
After further thinking about it, color conversion should happen in the form of setters for the lights. Since you can set xy, ct, and hue/saturation, it would make sense to me to add the methods to lights class:
def set_xy(r,g,b)
def set_ct(r,g,b)
def set_hsl(r,g,b)
The methods should take RGB since, imo, most programmers are using RGB when they're thinking about colors. Of course, I am open to discussion, that's just my thoughts on it.
Oh...and should conversion happen inside these methods?
Here is a list of them:
http://www.cs.rit.edu/~ncs/color/t_convert.html