Enum cursive::theme::Color
[−]
[src]
pub enum Color { TerminalDefault, Dark(BaseColor), Light(BaseColor), Rgb(u8, u8, u8), RgbLowRes(u8, u8, u8), }
Represents a color used by the theme.
Variants
TerminalDefault
Represents a color, preset by terminal.
Dark(BaseColor)
One of the 8 base colors.
Light(BaseColor)
Lighter version of a base color.
Rgb(u8, u8, u8)
True-color, 24-bit.
RgbLowRes(u8, u8, u8)
Low-resolution
Each value should be <= 5
(you'll get panics otherwise).
These 216 possible colors are part of the default color palette.
Methods
impl Color
[src]
fn from_256colors(n: u8) -> Self
[src]
Creates a color from its ID in the 256 colors list.
- Colors 0-7 are base dark colors.
- Colors 8-15 are base light colors.
- Colors 16-255 are rgb colors with 6 values per channel.
Trait Implementations
impl Clone for Color
[src]
fn clone(&self) -> Color
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Color
[src]
impl Debug for Color
[src]
impl PartialEq for Color
[src]
fn eq(&self, __arg_0: &Color) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Color) -> bool
[src]
This method tests for !=
.