pub struct Color(_);
Implementations
sourceimpl Color
impl Color
pub fn from_rgb(r: u8, g: u8, b: u8) -> Color
pub fn from_rgba(r: u8, g: u8, b: u8, a: u8) -> Color
pub fn from_rgb_f(r: f32, g: f32, b: f32) -> Color
pub fn from_rgba_f(r: f32, g: f32, b: f32, a: f32) -> Color
pub fn from_allegro_color(c: ALLEGRO_COLOR) -> Color
pub fn get_allegro_color(&self) -> ALLEGRO_COLOR
pub fn to_rgb(&self) -> (u8, u8, u8)
pub fn to_rgba(&self) -> (u8, u8, u8, u8)
pub fn to_rgb_f(&self) -> (f32, f32, f32)
pub fn to_rgba_f(&self) -> (f32, f32, f32, f32)
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more