3rd try with removing blank lines in colormaps

This commit is contained in:
Chen 2017-08-28 15:51:47 -04:00
parent da348be8ba
commit b1c524e8d8
1 changed files with 6 additions and 4 deletions

View File

@ -86,11 +86,12 @@ class Color():
def _HSV2HSL(self):
"""Convert H(ue) S(aturation) V(alue or brightness) to H(ue) S(aturation) L(uminance)
"""
Convert H(ue) S(aturation) V(alue or brightness) to H(ue) S(aturation) L(uminance)
with all values in the range of 0 to 1
http://codeitdown.com/hsl-hsb-hsv-color/
"""
if self.model != 'HSV': return
print "HSV: ",self.color
converted = Color('HSL',np.array([
@ -105,11 +106,12 @@ class Color():
def _HSL2HSV(self):
"""Convert H(ue) S(aturation) L(uminance) to H(ue) S(aturation) V(alue or brightness)
"""
Convert H(ue) S(aturation) L(uminance) to H(ue) S(aturation) V(alue or brightness)
with all values in the range of 0 to 1
http://codeitdown.com/hsl-hsb-hsv-color/
"""
if self.model != 'HSL': return
h = self.color[0]