def _rgb_vector(color):
 if isinstance(color, six.string_types):
  color = color_dict[color]
 return np.array(color[:3])

def _rgb_vector ( color ) : if isinstance ( color , six . string_types ) : color = color_dict [ color ] return np . array ( color [ : 3 ] )
return rgb color as array .