pub struct Complementary { /* private fields */ }Expand description
The complementary colors are the colors which are directly opposite from one another on the color wheel.
Complementary colors are contrasting and stand out against each other. Often it is a good idea to use a complementary color as the highlight color, as described above.
Implementations§
Source§impl Complementary
impl Complementary
Sourcepub fn num_of_colors(&self) -> usize
pub fn num_of_colors(&self) -> usize
Retrieve count colors of scheme
Sourcepub fn primary_color(&self) -> Color
pub fn primary_color(&self) -> Color
Retrieve primary color of scheme
Sourcepub fn set_primary_color(&mut self, val: Color)
pub fn set_primary_color(&mut self, val: Color)
Set the primary color of scheme
Trait Implementations§
Source§impl Clone for Complementary
impl Clone for Complementary
Source§fn clone(&self) -> Complementary
fn clone(&self) -> Complementary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Complementary
impl RefUnwindSafe for Complementary
impl Send for Complementary
impl Sync for Complementary
impl Unpin for Complementary
impl UnwindSafe for Complementary
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Fr, To> IntoColor<To> for Frwhere
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Frwhere
To: FromColor<Fr>,
Source§fn into_color(self) -> To
fn into_color(self) -> To
Convert into color