#NEWLINE# def fromhls( self , h , l , s ) : #NEWLINE# #INDENT# 'Convert to RGB from HSL.' #NEWLINE# ( r , g , b ) = hls_to_rgb ( h , l , s ) #NEWLINE# self . r = ( round_int ( ( r * 255.0 ) ) & 255 ) #NEWLINE# self . g = ( round_int ( ( g * 255.0 ) ) & 255 ) #NEWLINE# self . b = ( round_int ( ( b * 255.0 ) ) & 255 )