[−][src]Struct wasm_game_lib::graphics::color::Color
A color.
Fields
red: u8green: u8blue: u8alpha: u8Methods
impl Color[src]
pub fn new(red: u8, green: u8, blue: u8) -> Color[src]
Create a color with a alpha value of 255
pub fn new_with_alpha(red: u8, green: u8, blue: u8, alpha: u8) -> Color[src]
Create a color
pub fn green() -> Color[src]
Green color
pub fn yellow() -> Color[src]
Yellow color
pub fn orange() -> Color[src]
Orange color
pub fn red() -> Color[src]
Red color
pub fn blue() -> Color[src]
Blue color
pub fn cyan() -> Color[src]
Cyan color
pub fn grey() -> Color[src]
Grey color
pub fn pink() -> Color[src]
Pink color
pub fn purple() -> Color[src]
Purple color
pub fn black() -> Color[src]
No color
pub fn white() -> Color[src]
Pure white
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
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> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,