pub struct Color {
pub red: f32,
pub green: f32,
pub blue: f32,
pub alpha: f32,
}Expand description
RGBA color value with components expressed as 32-bit floating point numbers.
Fields§
§red: f32Amount of the red component, in the [0; 1] range.
green: f32Amount of the green component, in the [0; 1] range.
blue: f32Amount of the blue component, in the [0; 1] range.
alpha: f32Amount of the alpha component, in the [0; 1] range.
Trait Implementations§
impl Copy for Color
Source§impl PartialOrd for Color
impl PartialOrd 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 UnsafeUnpin 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