Function str_to_color

Source
pub fn str_to_color(s: &str) -> u32
Expand description

Converts an identifier to RGB color.

Lightness is set to half (0.5) to make colors suitable both for light and dark theme.