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: f32
Amount of the red component, in the [0; 1]
range.
green: f32
Amount of the green component, in the [0; 1]
range.
blue: f32
Amount of the blue component, in the [0; 1]
range.
alpha: f32
Amount of the alpha component, in the [0; 1]
range.
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