Gimp.RGB.parse_name

@accepts(Gimp.RGB, [unicode], int)
@returns(bool)
def parse_name(self, name, len):
    # Python 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 self.

Since 2.2

self

a Gimp.RGB struct used to return the parsed color

name

a color name (in UTF-8 encoding)

len

the length of name, in bytes. or -1 if name is nul-terminated

Returns