Guide API
Skip to main content

XTERM256_TO_RGB

Constant XTERM256_TO_RGB 

Source
pub const XTERM256_TO_RGB: [u32; 256];
Expand description

LUT: xterm-256 index → packed 0xRRGGBB.

Built at compile time. Indices 0..=15 are 0 (never looked up via xterm256_to_rgb). 16..=231 are the 6×6×6 cube; 232..=255 are the 24-step grayscale ramp.