Struct termion::color::AnsiValue
[−]
[src]
pub struct AnsiValue(pub u8);
An arbitrary ANSI color value.
Methods
impl AnsiValue
[src]
fn rgb(r: u8, g: u8, b: u8) -> AnsiValue
216-color (r, g, b ≤ 5) RGB.
fn grayscale(shade: u8) -> AnsiValue
Grayscale color.
There are 24 shades of gray.
Trait Implementations
impl Copy for AnsiValue
[src]
impl Clone for AnsiValue
[src]
fn clone(&self) -> AnsiValue
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