pub enum ColorPalette {
Show 18 variants
TerminalDefault,
Black,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White,
LightBlack,
LightRed,
LightGreen,
LightYellow,
LightBlue,
LightMagenta,
LightCyan,
LightWhite,
Custom(i16),
}Expand description
The color palette.
The first 8 color’s are considered dark colors, the next 8 (if available) are considered light colors.
Variants§
TerminalDefault
Color #-1
Black
Black color
Color #0
Red
Red color
Color #1
Green
Green color
Color #2
Yellow
Yellow/Brown color (Red + Green)
Color #3
Blue
Blue color
Color #4
Magenta
Magenta color (Red + Blue)
Color #5
Cyan
Cyan color (Green + Blue)
Color #6
White
White color (Red + Green + Blue)
Color #7
LightBlack
Light black color
Color #8
LightRed
Light red color
Color #9
LightGreen
Light green color
Color #10
LightYellow
Light yellow color (LightRed + LightGreen)
Color #11
LightBlue
Light blue color
Color #12
LightMagenta
Light magenta color (LightRed + LightBlue)
Color #13
LightCyan
Light cyan color (LightGreen + LightBlue)
Color #14
LightWhite
Light white color (LightRed + LightGreen + LightBlue)
Color #15
Custom(i16)
Custom color
Trait Implementations§
Source§impl Clone for ColorPalette
impl Clone for ColorPalette
Source§fn clone(&self) -> ColorPalette
fn clone(&self) -> ColorPalette
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ColorPalette
impl Debug for ColorPalette
Source§impl Default for ColorPalette
impl Default for ColorPalette
Source§fn default() -> ColorPalette
fn default() -> ColorPalette
Source§impl FromStr for ColorPalette
impl FromStr for ColorPalette
Source§fn from_str(color: &str) -> Result<ColorPalette, <ColorPalette as FromStr>::Err>
fn from_str(color: &str) -> Result<ColorPalette, <ColorPalette as FromStr>::Err>
Parse a string to instance a color palette.
Valid values are: ‘default’, ‘black’, ‘red’, ‘green’, ‘yellow’, ‘blue’, ‘magenta’, ‘cyan’, ‘white’, ‘light black’, ‘light red’, ‘light green’, ‘light yellow’, ‘light blue’, ‘light magenta’, ‘light cyan’, ‘light white’