pub(crate) fn parse_color( canvas: Option<&HTMLCanvasElement>, string: &str, ) -> Result<AbsoluteColor, ()>