[go: up one dir, main page]

color_to_ansi

Function color_to_ansi 

Source
pub const fn color_to_ansi(color: Color, palette: Palette) -> AnsiColor
Expand description

Lossily convert from any color to 4-bit color

As the palette for 4-bit colors is terminal/user defined, a palette::Palette must be provided to match against.