Struct primitives::foundation::colorschemes::Tetrad
source · [−]pub struct Tetrad { /* private fields */ }
Expand description
A tetradic color palette has four individual colors or hues if you will: a base color and three more colors.
All equidistant from the base color on the color wheel.
Implementations
sourceimpl Tetrad
impl Tetrad
sourcepub fn new(primary: Color) -> Self
pub fn new(primary: Color) -> Self
Generate Analogous scheme with your color, 90 degree angle and without alt
sourcepub fn with_parameters(
primary: Color,
angle: Option<f32>,
alt: Option<bool>
) -> Self
pub fn with_parameters(
primary: Color,
angle: Option<f32>,
alt: Option<bool>
) -> Self
Generate Analogous scheme with your parameters
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
Auto Trait Implementations
impl RefUnwindSafe for Tetrad
impl Send for Tetrad
impl Sync for Tetrad
impl Unpin for Tetrad
impl UnwindSafe for Tetrad
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more