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 represents the following blending equation:

blended = src * srcK + dst * dstK

Subtract represents the following blending equation:

blended = src * srcK - dst * dstK

Because subtracting is not commutative, ReverseSubtract represents the following additional blending equation:

blended = dst * dstK - src * srcK

Min represents the following blending equation:

blended = min(src, dst)

Max represents the following blending equation:

blended = max(src, dst)

Trait Implementations

impl Copy for Equation
[src]

impl Clone for Equation
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Equation
[src]

Formats the value using the given formatter.