Gimp.Palette.prototype.get_colors

function get_colors(): Array(Gegl.Color) {
    // Gjs wrapper for gimp_palette_get_colors()
}
  

Gets colors in the palette.

Returns an array of colors in the palette. Free the returned array with Gimp.color_array_free.

Since 2.6

Returns

The colors in the palette.