Enum palette::blend::Equation [−][src]
pub enum Equation { Add, Subtract, ReverseSubtract, Min, Max, }
A blending equation.
Variants
Add the source and destination, according to sp * S + dp * D
.
Subtract the destination from the source, according to sp * S - dp * D
.
Subtract the source from the destination, according to dp * D - sp * S
.
Create a color where each component is the smallest of each of the source and destination components. A.k.a. component wise min. The parameters are ignored.
Create a color where each component is the largest of each of the source and destination components. A.k.a. component wise max. The parameters are ignored.
Trait Implementations
impl Copy for Equation
[src]
impl Eq for Equation
[src]
impl StructuralEq for Equation
[src]
impl StructuralPartialEq for Equation
[src]
Auto Trait Implementations
impl RefUnwindSafe for Equation
impl Send for Equation
impl Sync for Equation
impl Unpin for Equation
impl UnwindSafe for Equation
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
[src]
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: FloatComponent,
Swp: WhitePoint,
Dwp: WhitePoint,
D: AdaptFrom<S, Swp, Dwp, T>,
[src]pub fn adapt_into_using<M>(Self, M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
[src]
impl<T, U> IntoColor<U> for T where
U: FromColor<T>,
[src]pub fn into_color(Self) -> U
[src]
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
[src]
impl<T, U> IntoColorUnclamped<U> for T where
U: FromColorUnclamped<T>,
[src]pub fn into_color_unclamped(Self) -> U
[src]
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
[src]
impl<T, U> TryIntoColor<U> for T where
U: TryFromColor<T>,
[src]