pub fn parse_color_hsl<'a>(
input: &'a str,
parse_alpha: bool,
) -> Result<ColorU, CssColorParseError<'a>>
Expand description
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.