pub fn snap_hex(hex: &str) -> Option<&'static Slot>Expand description
The slot a stored #rrggbb stands for (any colour: a slot’s own hex, one
of the 16’s, an old Tailwind hex, an HSL pick). One of the 16’s own hexes
goes where the retired table says: its hue alone does not settle it
(Indigo sits midway between Blue and Violet). A grey is Black or White; any
other colour is the hue slot nearest in OKLCH hue. None when it is not a
colour.