Gimp.color_array_get_length

@accepts(Gimp.ColorArray)
@returns(int)
def color_array_get_length(array):
    # Python wrapper for gimp_color_array_get_length()
  
array

an array of colors.

Returns