Gimp.palette_get_info
function palette_get_info(name: String): [ok: Boolean, num_colors: Number(gint)] {
// Gjs wrapper for gimp_palette_get_info()
}
Retrieve information about the specified palette.
This procedure retrieves information about the specified palette. This includes the name, and the number of colors.
Since 2.2
- name
The palette name.
- ok
TRUE on success.
- num_colors
The number of colors in the palette.