Skip to main content

normalize_hex

Function normalize_hex 

Source
pub fn normalize_hex(s: &str) -> Result<String, HexColorError>
Expand description

Normalize a raw hex string to #rrggbb (lowercase, with leading #).

Accepts values with or without a leading #.