pub enum BlendMode {
Show 16 variants
Normal,
Multiply,
Screen,
Overlay,
Darken,
Lighten,
ColorDodge,
ColorBurn,
HardLight,
SoftLight,
Difference,
Exclusion,
Hue,
Saturation,
Color,
Luminosity,
}Expand description
How a node’s layer is composited onto what is below it.
Variants§
Normal
Paints over (source-over).
Multiply
Darkens: multiplies colors.
Screen
Lightens: inverse of multiply.
Overlay
Multiply or screen, depending on the backdrop.
Darken
Keeps the darker color.
Lighten
Keeps the lighter color.
ColorDodge
Brightens the backdrop.
ColorBurn
Darkens the backdrop.
HardLight
Multiply or screen, depending on the source.
SoftLight
A softer hard light.
Difference
Absolute difference of the colors.
Exclusion
Like difference, lower contrast.
Hue
Source hue, backdrop saturation and luminosity.
Saturation
Source saturation.
Color
Source hue and saturation.
Luminosity
Source luminosity.
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