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