Gimp.rgba_parse_css
function rgba_parse_css(rgba: Gimp.RGB, css: Array(String)): Boolean {
// Gjs wrapper for gimp_rgba_parse_css()
}
Similar to Gimp.RGB.prototype.parse_css but handles RGB colors with alpha channel in the numerical CSS notation (rgba(255,0,0,255) or rgba(100%,0%,0%,1000%)).
It doesn't handle the hexadecimal notation or color names because they leave the alpha channel unspecified.
Since 2.2
- rgba
a Gimp.RGB struct used to return the parsed color
- css
a string describing a color in CSS notation
- Returns
true if css was parsed successfully and @rgb has been set, false otherwise