Function palette::named::from_str

source ยท
pub fn from_str(name: &str) -> Option<Srgb<u8>>
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.