# Gimp.palette_get_colors

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

Gets all colors from the specified palette.

This procedure retrieves all color entries of the specified palette.

Since 2.6

name

  The palette name.

return_value

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

num_colors

  Length of the colors array.