Enum palette::blend::Equation
[−]
[src]
pub enum Equation {
Add,
Subtract,
ReverseSubtract,
Min,
Max,
}A blending equation.
Variants
AddAdd the source and destination, according to sp * S + dp * D.
SubtractSubtract the destination from the source, according to sp * S - dp * D.
ReverseSubtractSubtract the source from the destination, according to dp * D - sp * S.
MinCreate 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.
MaxCreate 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 Debug for Equation[src]
impl Eq for Equation[src]
impl PartialEq for Equation[src]
fn eq(&self, __arg_0: &Equation) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Copy for Equation[src]
impl Clone for Equation[src]
fn clone(&self) -> Equation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more