[−][src]Struct pixel_engine::Color
Represent a Color in a RGBA format
Fields
r: u8
Red part of the color
g: u8
Green part of the color
b: u8
Blue part of the color
a: u8
Alpha part of the color
Implementations
impl Color
[src]
pub const fn new(r: u8, g: u8, b: u8) -> Color
[src]
Return a Color with alpha set at 255
pub const fn new_with_alpha(r: u8, g: u8, b: u8, a: u8) -> Color
[src]
Return a Color where alpha is also a argument
pub const WHITE: Color
[src]
White Color
pub const GREY: Color
[src]
Gray Color
pub const DARK_GREY: Color
[src]
Dark Grey Color
pub const VERY_DARK_GREY: Color
[src]
Very Dark Grey Color
pub const RED: Color
[src]
Red Color
pub const DARK_RED: Color
[src]
Dark Red Color
pub const VERY_DARK_RED: Color
[src]
Very Dark Red Color
pub const YELLOW: Color
[src]
Yellow Color
pub const DARK_YELLOW: Color
[src]
Dark Yellow Color
pub const VERY_DARK_YELLOW: Color
[src]
Very Dark Yellow Color
pub const GREEN: Color
[src]
Green Color
pub const DARK_GREEN: Color
[src]
Dark Green Color
pub const VERY_DARK_GREEN: Color
[src]
Very Dark Green Color
pub const CYAN: Color
[src]
Cyan Color
pub const DARK_CYAN: Color
[src]
Dark Cyan Color
pub const VERY_DARK_CYAN: Color
[src]
Very Dark Cyan Color
pub const BLUE: Color
[src]
Blue Color
pub const DARK_BLUE: Color
[src]
Dark Blue Color
pub const VERY_DARK_BLUE: Color
[src]
Very Dark Blue Color
pub const MAGENTA: Color
[src]
Magenta Color
pub const DARK_MAGENTA: Color
[src]
Dark Magenta Color
pub const VERY_DARK_MAGENTA: Color
[src]
Very Dark Magenta Color
pub const BLACK: Color
[src]
Black Color
pub const BLANK: Color
[src]
Blank Color
Trait Implementations
impl Clone for Color
[src]
impl Copy for Color
[src]
impl Debug for Color
[src]
impl Eq for Color
[src]
impl From<[f32; 3]> for Color
[src]
impl From<[f32; 4]> for Color
[src]
impl From<[f64; 3]> for Color
[src]
impl From<[f64; 4]> for Color
[src]
impl From<[u8; 3]> for Color
[src]
impl From<[u8; 4]> for Color
[src]
impl From<u32> for Color
[src]
impl PartialEq<Color> for Color
[src]
impl StructuralEq for Color
[src]
impl StructuralPartialEq for Color
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,