corrected a little mistake on line 145 that sets the maximum value of XYZ values to be 1.0

This commit is contained in:
Mahesh Balasubramaniam 2013-03-25 20:18:30 +00:00
parent b3d984ee1c
commit 7fd1dca4f5
1 changed files with 1 additions and 1 deletions

View File

@ -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)