Skip to main content

parse_color

Function parse_color 

Source
pub fn parse_color(input: &str) -> Option<Rgb>
Expand description

Parse a color name or hex string into an RGB value. Supports named colors and hex values (e.g. “#ff6432” or “ff6432”).