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 Debug for Equation
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

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]