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.