You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Here is a list of them:
http://www.cs.rit.edu/~ncs/color/t_convert.html
The text was updated successfully, but these errors were encountered: