Gimp.RGB.prototype.parse_hex
function parse_hex(hex: Array(String)): Boolean {
// Gjs wrapper for gimp_rgb_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
true if hex was parsed successfully and rgb has been set, false otherwise