Gimp.color_parse_hex

@accepts(unicode)
@returns(Gegl.Color)
def color_parse_hex(hex):
    # Python wrapper for gimp_color_parse_hex()
  

Attempts to parse a string describing a sRGB color in hexadecimal notation (optionally prefixed with a '#').

hex

a string describing a color in hexadecimal notation

Returns