pub struct Srgb {
pub red: f32,
pub green: f32,
pub blue: f32,
pub alpha: f32,
}
Expand description
A color in the sRGB color space.
Fields§
§red: f32
The red component.
green: f32
The green component.
blue: f32
The blue component.
alpha: f32
The alpha component.
Implementations§
Trait Implementations§
source§impl PartialEq for Srgb
impl PartialEq for Srgb
impl Copy for Srgb
impl StructuralPartialEq for Srgb
Auto Trait Implementations§
impl RefUnwindSafe for Srgb
impl Send for Srgb
impl Sync for Srgb
impl Unpin for Srgb
impl UnwindSafe for Srgb
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