pub struct HSLA32 {
pub h: f32,
pub s: f32,
pub l: f32,
pub a: f32,
}
Expand description
A color in HSLA 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.
l: f32
Lightness is a percentage value in [0f32, 1f32]
.
0% is black, 100% is white.
a: f32
Alpha is a percentage value in [0f32, 1f32]
.
0% is transparent, 100% is opaque.
Implementations§
Trait Implementations§
Source§impl PartialOrd for HSLA32
impl PartialOrd for HSLA32
impl Copy for HSLA32
impl StructuralPartialEq for HSLA32
Auto Trait Implementations§
impl Freeze for HSLA32
impl RefUnwindSafe for HSLA32
impl Send for HSLA32
impl Sync for HSLA32
impl Unpin for HSLA32
impl UnwindSafe for HSLA32
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