Struct allegro::Color
[−]
[src]
pub struct Color(_);
Methods
impl Color
[src]
fn from_rgb(r: u8, g: u8, b: u8) -> Color
fn from_rgba(r: u8, g: u8, b: u8, a: u8) -> Color
fn from_rgb_f(r: f32, g: f32, b: f32) -> Color
fn from_rgba_f(r: f32, g: f32, b: f32, a: f32) -> Color
fn from_allegro_color(c: ALLEGRO_COLOR) -> Color
fn get_allegro_color(&self) -> ALLEGRO_COLOR
fn to_rgb(&self) -> (u8, u8, u8)
fn to_rgba(&self) -> (u8, u8, u8, u8)
fn to_rgb_f(&self) -> (f32, f32, f32)
fn to_rgba_f(&self) -> (f32, f32, f32, f32)
Trait Implementations
impl Copy for Color
[src]
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