Guide API
Skip to main content

XTERM256_TO_XTERM16

Constant XTERM256_TO_XTERM16 

Source
pub const XTERM256_TO_XTERM16: [u8; 256];
Expand description

LUT: xterm-256 index → nearest xterm-16 index.

Built at compile time from rgb_to_xterm16. Indices 0..=15 map to themselves; 16..=231 are the 6×6×6 cube; 232..=255 are the grayscale ramp.