def hls(self):
        """
        HLS: (Hue°, Lightness%, Saturation%)
        Hue given as percent of 360, Lightness and Saturation given as percent
        """
        r, g, b = self.color
        hls = colorsys.rgb_to_hls(r, g, b)
        hls = (int(round(hls[0] * 360)), hls[1], hls[2])
        return self._append_alpha_if_necessary(hls)
def hls ( self ) : r , g , b = self . color hls = colorsys . rgb_to_hls ( r , g , b ) hls = ( int ( round ( hls [ 0 ] * 360 ) ) , hls [ 1 ] , hls [ 2 ] ) return self . _append_alpha_if_necessary ( hls )
HLS: (Hue°, Lightness%, Saturation%)
        Hue given as percent of 360, Lightness and Saturation given as percent