Trait rainbow::Color
[−]
[src]
pub trait Color { fn to_f32(&self) -> (f32, f32, f32, f32); fn to_u8(&self) -> (u8, u8, u8, u8); }
Required Methods
fn to_f32(&self) -> (f32, f32, f32, f32)
Create a tuple (red, green, blue, alpha)
.
Scales form 0.0 to 1.0.
fn to_u8(&self) -> (u8, u8, u8, u8)
Create a tuple (red, green, blue, alpha)
.
Scales form 0 to 255.