Enum tetra::graphics::BlendOperation [−][src]
pub enum BlendOperation {
Add,
Subtract,
ReverseSubtract,
Min,
Max,
}
Expand description
Defines a formula for blending two color or alpha values.
Variants
Add
Blends by adding the source and the destination together.
(srcValue * srcBlendFactor) + (dstValue * dstBlendFactor)
Subtract
Blends by subtracting the destination from the source.
(srcValue * srcBlendFactor) - (dstValue * dstBlendFactor)
ReverseSubtract
Blends by subtracting the source from the destination.
(dstValue * dstBlendFactor) - (srcValue * srcBlendFactor)
Min
Blends by picking the minimum of the source and destination.
min((srcValue * srcBlendFactor), (dstValue * dstBlendFactor))
Max
Blends by picking the maximum of the source and destination.
max((srcValue * srcBlendFactor), (dstValue * dstBlendFactor))
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for BlendOperation
impl Send for BlendOperation
impl Sync for BlendOperation
impl Unpin for BlendOperation
impl UnwindSafe for BlendOperation
Blanket Implementations
Mutably borrows from an owned value. Read more