Module x11_colors

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.