def _color_to_rgb(color, input):
 if (input == 'hls'):
  color = colorsys.hls_to_rgb(*color)
 elif (input == 'husl'):
  color = husl.husl_to_rgb(*color)
 elif (input == 'xkcd'):
  color = xkcd_rgb[color]
 return color

def _color_to_rgb ( color , input ) : if ( input == 'hls' ) : color = colorsys . hls_to_rgb ( * color ) elif ( input == 'husl' ) : color = husl . husl_to_rgb ( * color ) elif ( input == 'xkcd' ) : color = xkcd_rgb [ color ] return color
add some more flexibility to color choices .