Enum cursive::theme::Color
[−]
[src]
pub enum Color { Dark(BaseColor), Light(BaseColor), Rgb(u8, u8, u8), RgbLowRes(u8, u8, u8), }
Represents a color used by the theme.
Variants
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.
Trait Implementations
impl Clone for Color
[src]
fn clone(&self) -> Color
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more