Function lookup_palette_index

Source
pub(crate) fn lookup_palette_index(s: &str) -> Option<usize>
Expand description

Given a named color (e.g., “red”, “mediumorchid”), returns the index of that color into COLORS and NAMES.