# Gimp.Palette.prototype.get_colors

    function get_colors(): [return_value: Array(Gimp.RGB), num_colors: Number(gint)] {
        // Gjs wrapper for gimp_palette_get_colors()
    }

Gets colors in the palette.

Returns an array of colors in the palette.

Since 2.6

return_value

  The colors in the palette. The returned value must be freed with g_free().

num_colors

  Length of the colors array.