Gimp.context_set_palette
function context_set_palette(name: String): Boolean {
// Gjs wrapper for gimp_context_set_palette()
}
Set the specified palette as the active palette.
This procedure allows the active palette to be set by specifying its name. The name is simply a string which corresponds to one of the names of the installed palettes. If no matching palette is found, this procedure will return an error. Otherwise, the specified palette becomes active and will be used in all subsequent palette operations.
Since 2.2
- name
The name of the palette.
- Returns
TRUE on success.