Gimp.color_array_get_length

function color_array_get_length(array: Gimp.ColorArray): Number(gint) {
    // Gjs wrapper for gimp_color_array_get_length()
}
  
array

an array of colors.

Returns

the number of [class@Gegl.Color] in array.