Struct redox::Color
[−]
[src]
pub struct Color { pub data: u32, }
A color
Fields
data |
Methods
impl Color
fn rgb(r: u8, g: u8, b: u8) -> Self
Create a new color from RGB
fn rgba(r: u8, g: u8, b: u8, a: u8) -> Self
Set the alpha