pub struct Color {
pub red: f64,
pub green: f64,
pub blue: f64,
pub alpha: f64,
}Expand description
An RGBA color.
Fields§
§red: f64The red component in the range 0 to 1.
green: f64The green component in the range 0 to 1.
blue: f64The blue component in the range 0 to 1.
alpha: f64The alpha component in the range 0 to 1.
Implementations§
Trait Implementations§
Source§impl PartialOrd for Color
impl PartialOrd 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