Skip to main content

from_str

Function from_str 

Source
pub fn from_str(name: &str) -> Option<Rgb<Srgb, u8>>
Available on crate features named and named_from_str only.
Expand description

Get a SVG/CSS3 color by name. Can be toggled with the "named_from_str" Cargo feature.

The names are the same as the constants, but lower case.