def convert_colorscale_to_rgb(colorscale):
 for color in colorscale:
  color[1] = convert_to_RGB_255(color[1])
 for color in colorscale:
  color[1] = label_rgb(color[1])
 return colorscale

def convert_colorscale_to_rgb ( colorscale ) : for color in colorscale : color [ 1 ] = convert_to_RGB_255 ( color [ 1 ] ) for color in colorscale : color [ 1 ] = label_rgb ( color [ 1 ] ) return colorscale
converts the colors in a colorscale to rgb colors a colorscale is an array of arrays .