mirror of
https://github.com/b-ryan/powerline-shell.git
synced 2026-09-10 07:26:28 -04:00
update changes from #354 for py3
This commit is contained in:
parent
6eff2101be
commit
668a964291
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue