Enum luminance::blending::Equation [−][src]
pub enum Equation {
Additive,
Subtract,
ReverseSubtract,
Min,
Max,
}
Expand description
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
Auto Trait Implementations
impl RefUnwindSafe for Equation
impl UnwindSafe for Equation
Blanket Implementations
Mutably borrows from an owned value. Read more