Gimp.color_parse_hex
@accepts([unicode], int)
@returns(Gegl.Color)
def color_parse_hex(hex, len):
# Python wrapper for gimp_color_parse_hex()
Attempts to parse a string describing an RGB color in hexadecimal notation (optionally prefixed with a '#').
This function does not touch the alpha component of @rgb.
Since 2.2
- hex
a string describing a color in hexadecimal notation
- len
the length of hex, in bytes. or -1 if hex is nul-terminated
- Returns