Struct primitives::foundation::colorschemes::Triad
source · [−]pub struct Triad { /* private fields */ }
Expand description
Triad colors are three hues equidistant on the color wheel.
When you want a design that is colorful and yet balanced, a triad color scheme might be the way to go.
Implementations
sourceimpl Triad
impl Triad
sourcepub fn with_parameters(primary: Color, angle: Option<f32>) -> Self
pub fn with_parameters(primary: Color, angle: Option<f32>) -> Self
Generate Triad 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 Triad
impl Send for Triad
impl Sync for Triad
impl Unpin for Triad
impl UnwindSafe for Triad
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