corrected a little mistake on line 145 that sets the maximum value of XYZ values to be 1.0
This commit is contained in:
parent
b3d984ee1c
commit
7fd1dca4f5
|
@ -142,7 +142,7 @@ class Color():
|
|||
else: RGB_lin[i] = self.color[i] /12.92
|
||||
XYZ = numpy.dot(convert,RGB_lin)
|
||||
for i in xrange(3):
|
||||
XYZ[i] = min(XYZ[i],1.0)
|
||||
|
||||
XYZ[i] = max(XYZ[i],0.0)
|
||||
|
||||
converted = Color('XYZ', XYZ)
|
||||
|
|
Loading…
Reference in New Issue