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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Equation
[src]

[src]

Formats the value using the given formatter.

impl Eq for Equation
[src]

impl PartialEq for Equation
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.