Enum luminance::blending::Equation [−][src]
pub enum Equation { Additive, Subtract, ReverseSubtract, Min, Max, }
Blending equation. Used to state how blending factors and pixel data should be blended.
Variants
Additive
Additive
represents the following blending equation:
blended = src * srcK + dst * dstK
Subtract
Subtract
represents the following blending equation:
blended = src * srcK - dst * dstK
ReverseSubtract
Because subtracting is not commutative, ReverseSubtract
represents the following additional
blending equation:
blended = dst * dstK - src * srcK
Min
Min
represents the following blending equation:
blended = min(src, dst)
Max
Max
represents the following blending equation:
blended = max(src, dst)
Trait Implementations
impl Copy for Equation
[src]
impl Copy for Equation
impl Clone for Equation
[src]
impl Clone for Equation
fn clone(&self) -> Equation
[src]
fn clone(&self) -> Equation
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Equation
[src]
impl Debug for Equation
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Equation
[src]
impl Eq for Equation
impl PartialEq for Equation
[src]
impl PartialEq for Equation