pub struct TonalPalette {
pub hue: f64,
pub chroma: f64,
}Expand description
A tonal palette: one hue and chroma spread across the tone scale.
tone(90) is very light, tone(10) very dark, and both read as one colour.
Fields§
§hue: f64The hue, in degrees.
chroma: f64The chroma ceiling: the maximum saturation reachable at any tone.
Implementations§
Trait Implementations§
Source§impl Clone for TonalPalette
impl Clone for TonalPalette
impl Copy for TonalPalette
Source§impl Debug for TonalPalette
impl Debug for TonalPalette
Source§impl PartialEq for TonalPalette
impl PartialEq for TonalPalette
impl StructuralPartialEq for TonalPalette
Auto Trait Implementations§
impl Freeze for TonalPalette
impl RefUnwindSafe for TonalPalette
impl Send for TonalPalette
impl Sync for TonalPalette
impl Unpin for TonalPalette
impl UnsafeUnpin for TonalPalette
impl UnwindSafe for TonalPalette
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