Struct ransid::color::Color [] [src]

pub struct Color {
    pub data: u32,
}

A color

Fields

data: u32

Methods

impl Color
[src]

fn new(r: u8, g: u8, b: u8) -> Self

Create a new color from RGB

fn ansi(value: u8) -> Self

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

impl Copy for Color
[src]