Enum palette::blend::Equation
[−]
[src]
pub enum Equation { Add, Subtract, ReverseSubtract, Min, Max, }
A blending equation.
Variants
Add
Add the source and destination, according to sp * S + dp * D
.
Subtract
Subtract the destination from the source, according to sp * S - dp * D
.
ReverseSubtract
Subtract the source from the destination, according to dp * D - sp * S
.
Min
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.
Max
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 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
impl Copy 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) -> bool
1.0.0
This method tests for !=
.