color
0.3.1
Module x11_
colors
Module Items
Constants
Functions
In crate color
color
Module
x11_colors
Copy item path
Source
Constants
§
COLORS
🔒
RGBA8 color components of the named X11 colors, in the same order as
NAMES
.
NAMES
🔒
SALTS
🔒
Functions
§
lookup_
palette_
index
🔒
Given a named color (e.g., “red”, “mediumorchid”), returns the index of that color into
COLORS
and
NAMES
.
weak_
hash
🔒
Hash the 32 bit key into a value less than
n
, adding salt.