Gimp.Palette.prototype.entry_set_color

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

Sets the color of an entry in the palette.

Sets the color of the entry at the zero-based index into the palette. Returns an error when the index is out of range. Returns an error when the palette is not editable.

Since 2.2

entry_num

The entry to get.

color

The new color.

Returns

TRUE on success.