Enum cursive::theme::Color [] [src]

pub enum Color {
    TerminalDefault,
    Dark(BaseColor),
    Light(BaseColor),
    Rgb(u8u8u8),
    RgbLowRes(u8u8u8),
}

Represents a color used by the theme.

Variants

Represents a color, preset by terminal.

One of the 8 base colors.

Lighter version of a base color.

True-color, 24-bit.

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]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

impl Debug for Color
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Color
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Eq for Color
[src]

impl Hash for Color
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more