try_color

Function try_color 

Source
pub fn try_color(color_str: &str) -> Result<AlphaColor<Srgb>, ParseError>
Expand description

Parse color string to AlphaColor<Srgb> without panic

In its inner it uses color::parse_color