Gimp.Palette.prototype.get_color_count

function get_color_count(): Number(gint) {
    // Gjs wrapper for gimp_palette_get_color_count()
}
  

Get the count of colors in the palette.

Returns the number of colors in the palette.

Since 2.2

Returns

The number of colors in the palette.