pub enum BlendMode {
Over,
Add,
Multiply,
Screen,
Darken,
Lighten,
Subtract,
}Variants§
Over
Premultiplied alpha-over (the baseline compositing contract; ADR 0040).
Add
Additive blending (used for glow/beam).
Multiply
Multiply blending (used for grain/darken overlays).
Screen
Screen blending (used for light overlays).
Darken
Channel-wise darken (min(dst, src) for color channels).
This mode is bounded and portable because it maps to a fixed-function blend operation (no destination sampling).
Lighten
Channel-wise lighten (max(dst, src) for color channels).
This mode is bounded and portable because it maps to a fixed-function blend operation (no destination sampling).
Subtract
Subtract (dst - src, clamped to [0, 1]) for color channels.
This mode is bounded and portable because it maps to a fixed-function blend operation (no destination sampling).
Implementations§
Trait Implementations§
impl Copy for BlendMode
impl Eq for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations§
impl Freeze for BlendMode
impl RefUnwindSafe for BlendMode
impl Send for BlendMode
impl Sync for BlendMode
impl Unpin for BlendMode
impl UnsafeUnpin for BlendMode
impl UnwindSafe for BlendMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more