Gimp.RGB.list_names
function list_names(): [names: Array(String), colors: Array(Gimp.RGB)] {
// Gjs wrapper for gimp_rgb_list_names()
}
Returns the list of <ulink url="https://www.w3.org/TR/SVG/types.html">SVG 1.0 color keywords</ulink> that is used by Gimp.RGB.prototype.parse_name.
The returned strings are const and must not be freed. Only the two arrays are allocated dynamically. You must call g_free() on the names and colors arrays when they are not any longer needed.
Since 2.2
- names
return location for an array of color names
- colors
return location for an array of GimpRGB structs