pub struct HSVA32 {
pub h: f32,
pub s: f32,
pub v: f32,
pub a: f32,
}
Expand description
A color in HSVA color space with 32-bit floating point components.
Fields§
§h: f32
Hue is a degree on the color wheel from [0f32, 360f32)
.
0 is red, 120 is green, 240 is blue.
s: f32
Saturation is a percentage value in [0f32, 1f32]
.
0% means a shade of gray and 100% is the full color.
v: f32
§a: f32
Alpha is a percentage value in [0f32, 1f32]
.
0% is transparent, 100% is opaque.
Implementations§
Trait Implementations§
Source§impl PartialOrd for HSVA32
impl PartialOrd for HSVA32
impl Copy for HSVA32
impl StructuralPartialEq for HSVA32
Auto Trait Implementations§
impl Freeze for HSVA32
impl RefUnwindSafe for HSVA32
impl Send for HSVA32
impl Sync for HSVA32
impl Unpin for HSVA32
impl UnwindSafe for HSVA32
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