Gimp.RGB.parse_css
@accepts(Gimp.RGB, [unicode], int)
@returns(bool)
def parse_css(self, css, len):
# Python wrapper for gimp_rgb_parse_css()
Attempts to parse a string describing an RGB color in CSS notation. This can be either a numerical representation (rgb(255,0,0) or rgb(100%,0%,0%)) or a hexadecimal notation as parsed by Gimp.RGB.parse_hex (##ff0000) or a color name as parsed by Gimp.RGB.parse_name (red).
This function does not touch the alpha component of self.
Since 2.2
- self
a Gimp.RGB struct used to return the parsed color
- css
a string describing a color in CSS notation
- len
the length of css, in bytes. or -1 if css is nul-terminated
- Returns