diff --git a/lib/damask/colormaps.py b/lib/damask/colormaps.py index 12a2308d4..b24743884 100644 --- a/lib/damask/colormaps.py +++ b/lib/damask/colormaps.py @@ -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]