pub struct Color {
pub red: f32,
pub green: f32,
pub blue: f32,
pub alpha: f32,
}Expand description
A color stored as four f32 values (red, green, blue, alpha) ranging from 0.0 to 1.0.
Fields§
§red: f32§green: f32§blue: f32§alpha: f32Implementations§
Trait Implementations§
Source§impl TryFrom<Vec<u8>> for Color
impl TryFrom<Vec<u8>> for Color
impl Copy for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl Freeze for Color
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more