Gimp.color_parse_hex

function color_parse_hex(hex: String): Gegl.Color {
    // Gjs 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

a newly allocated color representing hex.