pub struct Color {
pub r: f64,
pub g: f64,
pub b: f64,
pub a: f64,
}Expand description
An RGBA float representation of a color.
Fields§
§r: f64Amount of red, from 0.0 to 1.0.
g: f64Amount of green, from 0.0 to 1.0.
b: f64Amount of blue, from 0.0 to 1.0.
a: f64Amount of alpha, from 0.0 to 1.0.
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