pub struct Hct {
pub hue: f64,
pub chroma: f64,
pub tone: f64,
}Expand description
A colour in HCT: CAM16 hue (degrees), CAM16 chroma, and L* tone.
Fields§
§hue: f64Hue, in degrees (0..360).
chroma: f64Chroma (0 = grey; the maximum depends on the hue and the tone).
tone: f64Tone L* (0 = black, 100 = white) — the contrast axis.
Implementations§
Trait Implementations§
impl Copy for Hct
impl StructuralPartialEq for Hct
Auto Trait Implementations§
impl Freeze for Hct
impl RefUnwindSafe for Hct
impl Send for Hct
impl Sync for Hct
impl Unpin for Hct
impl UnsafeUnpin for Hct
impl UnwindSafe for Hct
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