[][src]Function azul_css_parser::parse_color_hsl

pub fn parse_color_hsl<'a>(
    input: &'a str,
    parse_alpha: bool
) -> Result<ColorU, CssColorParseError<'a>>

Parse a color of the form 'hsl([0.0-360.0]deg, [0-100]%, [0-100]%)', or 'hsla([0.0-360.0]deg, [0-100]%, [0-100]%, [0.0-1.0])' without the leading 'hsl[a](' or trailing ')'. Alpha defaults to 255.