pub enum BlendMode {
Normal,
Multiply,
Screen,
Overlay,
Darken,
Lighten,
ColorDodge,
ColorBurn,
HardLight,
SoftLight,
Difference,
Exclusion,
}Expand description
A separable blend mode (ISO 32000 §11.3.5, Table 136), set with
Canvas::set_blend_mode.
Variants§
Normal
Source color replaces the backdrop.
Multiply
Product of source and backdrop.
Screen
Complement of the product of the complements.
Overlay
Multiply or screen, chosen by the backdrop.
Darken
The darker of source and backdrop, per component.
Lighten
The lighter of source and backdrop, per component.
ColorDodge
Brightens the backdrop toward the source.
ColorBurn
Darkens the backdrop toward the source.
HardLight
Multiply or screen, chosen by the source (Overlay with roles swapped).
SoftLight
A softer variant of HardLight.
Difference
Absolute difference of source and backdrop.
Exclusion
Like Difference, with lower contrast.
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