pub struct Color {
pub r: f32,
pub g: f32,
pub b: f32,
pub a: f32,
}
Expand description
A color with red, green, blue and alpha components.
Fields§
§r: f32
The red component in [0.0-1.0]
range.
g: f32
The green component in [0.0-1.0]
range.
b: f32
The blue component in [0.0-1.0]
range.
a: f32
The alpha component in [0.0-1.0]
range.
Implementations§
Trait Implementations§
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