update changes from #354 for py3

This commit is contained in:
Buck Ryan 2018-04-21 15:59:39 -04:00
parent 6eff2101be
commit 668a964291

View file

@ -10,7 +10,7 @@ from .utils import py3
def getOppositeColor(r,g,b):
r, g, b = [x/255.0 for x in r, g, b] # convert to float before getting hls value
r, g, b = [x/255.0 for x in [r, g, b]] # convert to float before getting hls value
hls = rgb_to_hls(r,g,b)
opp = list(hls[:])
opp[0] = (opp[0]+0.2)%1 # shift hue (a.k.a. color)