Gimp.RGB.prototype.parse_name
function parse_name(name: Array(String)): Boolean {
// Gjs wrapper for gimp_rgb_parse_name()
}
Attempts to parse a color name. This function accepts <ulink url="https://www.w3.org/TR/SVG/types.html#ColorKeywords">SVG 1.0 color keywords</ulink>.
This function does not touch the alpha component of rgb.
Since 2.2
- name
a color name (in UTF-8 encoding)
- Returns
true if name was parsed successfully and rgb has been set, false otherwise