Gimp.palette_entry_set_color

function palette_entry_set_color(name: String, entry_num: Number(gint), color: Gimp.RGB): Boolean {
    // Gjs wrapper for gimp_palette_entry_set_color()
}
  

Sets the specified palette entry in the specified palette.

This procedure sets the color of the zero-based entry specified for the specified palette. It returns an error if the entry does not exist.

Since 2.2

name

The palette name.

entry_num

The entry to retrieve.

color

The new color.

Returns

TRUE on success.