Gimp.palette_add_entry
function palette_add_entry(name: String, entry_name: String, color: Gimp.RGB): [ok: Boolean, entry_num: Number(gint)] {
// Gjs wrapper for gimp_palette_add_entry()
}
Adds a palette entry to the specified palette.
This procedure adds an entry to the specified palette. It returns an error if the entry palette does not exist.
Since 2.2
- name
The palette name.
- entry_name
The name of the entry.
- color
The new entry's color color.
- ok
TRUE on success.
- entry_num
The index of the added entry.