pub struct LchValue {
pub l: f32,
pub c: f32,
pub h: f32,
}
Expand description
§Lch: Luminance, Chroma, Hue
Value | Color | Range |
---|---|---|
L* | Light <---> Dark | 0.0 <---> 100.0 |
c | Chroma (Amount of color) | 0.0 <---> 181.0139 |
h | Hue (Degrees) | 0.0 <---> 360.0° |
Fields§
§l: f32
Lightness
c: f32
Chroma
h: f32
Hue (in degrees)
Implementations§
Trait Implementations§
source§impl PartialEq for LchValue
impl PartialEq for LchValue
source§impl Validate for LchValue
impl Validate for LchValue
source§fn validate(self) -> Result<Self, ValueError>
fn validate(self) -> Result<Self, ValueError>
Return
Err()
if the values are invalidimpl Copy for LchValue
impl StructuralPartialEq for LchValue
Auto Trait Implementations§
impl Freeze for LchValue
impl RefUnwindSafe for LchValue
impl Send for LchValue
impl Sync for LchValue
impl Unpin for LchValue
impl UnwindSafe for LchValue
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