pub struct TonalPalette { /* private fields */ }Expand description
A hue and chroma, from which any tone can be requested.
Implementations§
Source§impl TonalPalette
impl TonalPalette
Sourcepub fn from_hct(hct: Hct) -> Self
pub fn from_hct(hct: Hct) -> Self
The hue and chroma of an HCT color, which is also the key color.
Sourcepub fn from_hue_and_chroma(hue: f64, chroma: f64) -> Self
pub fn from_hue_and_chroma(hue: f64, chroma: f64) -> Self
A hue and chroma; the key color is searched for.
Trait Implementations§
Source§impl Clone for TonalPalette
impl Clone for TonalPalette
Source§fn clone(&self) -> TonalPalette
fn clone(&self) -> TonalPalette
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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