Struct rofl::Color [] [src]

pub struct Color(pub u8, pub u8, pub u8);

RGB color of the text.

Methods

impl Color
[src]

Create a white color.

Create a black color.

Create a gray color of given intensity.

impl Color
[src]

Convert the color to its chromatic inverse.

Trait Implementations

impl<'de> Deserialize<'de> for Color
[src]

Deserialize this value from the given Serde deserializer. Read more

impl FromStr for Color
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Clone for Color
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Color
[src]

impl Debug for Color
[src]

Formats the value using the given formatter.

impl PartialEq for Color
[src]

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

This method tests for !=.

impl Eq for Color
[src]

impl Hash for Color
[src]

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

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

impl Display for Color
[src]

Formats the value using the given formatter. Read more