# Gimp.color_parse_hex

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

Returns

  a newly allocated color representing hex.