pub enum BlendMode {
Show 24 variants
Clear,
Source,
Destination,
SourceOver,
DestinationOver,
SourceIn,
DestinationIn,
SourceOut,
DestinationOut,
SourceAtop,
DestinationAtop,
Xor,
Plus,
Multiply,
Screen,
Overlay,
Darken,
Lighten,
HardLight,
SoftLight,
Difference,
Exclusion,
ColorDodge,
ColorBurn,
}Expand description
Blend mode of the source and the background.
Variants§
Clear
Source
Destination
SourceOver
DestinationOver
SourceIn
DestinationIn
SourceOut
DestinationOut
SourceAtop
DestinationAtop
Xor
Plus
Additive blending with saturation.
Multiply
Screen
Overlay
Darken
Lighten
HardLight
SoftLight
Soft light (like HardLight, but softer) — W3C compositing.
Difference
Absolute difference of channels.
Exclusion
Similar to Difference, but with lower contrast.
ColorDodge
Dodge by division: brings out the background according to the source.
ColorBurn
Burn by division: darkens the background according to the source.
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