#[non_exhaustive]pub enum BlendMode {
Show 16 variants
Default,
Multiply,
Screen,
Overlay,
Darken,
Lighten,
ColorDodge,
ColorBurn,
HardLight,
SoftLight,
Difference,
Exclusion,
Color,
Hue,
Saturation,
Luminosity,
}
Expand description
The blend modes available for render nodes.
The implementation of each blend mode is deferred to the rendering pipeline.
See https://www.w3.org/TR/compositing-1/#blending for more information on blending and blend modes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Default
The default blend mode, which specifies no blending
Multiply
The source color is multiplied by the destination and replaces the destination
Screen
Multiplies the complements of the destination and source color values, then complements the result.
Overlay
Multiplies or screens the colors, depending on the destination color value. This is the inverse of hard-list
Darken
Selects the darker of the destination and source colors
Lighten
Selects the lighter of the destination and source colors
ColorDodge
Brightens the destination color to reflect the source color
ColorBurn
Darkens the destination color to reflect the source color
HardLight
Multiplies or screens the colors, depending on the source color value
SoftLight
Darkens or lightens the colors, depending on the source color value
Difference
Subtracts the darker of the two constituent colors from the lighter color
Exclusion
Produces an effect similar to that of the difference mode but lower in contrast
Color
Creates a color with the hue and saturation of the source color and the luminosity of the destination color
Hue
Creates a color with the hue of the source color and the saturation and luminosity of the destination color
Saturation
Creates a color with the saturation of the source color and the hue and luminosity of the destination color
Luminosity
Creates a color with the luminosity of the source color and the hue and saturation of the destination color
Trait Implementations§
Source§impl<'a> FromValue<'a> for BlendMode
impl<'a> FromValue<'a> for BlendMode
Source§type Checker = GenericValueTypeChecker<BlendMode>
type Checker = GenericValueTypeChecker<BlendMode>
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Value
. Read moreSource§impl HasParamSpec for BlendMode
impl HasParamSpec for BlendMode
Source§impl Ord for BlendMode
impl Ord for BlendMode
Source§impl PartialOrd for BlendMode
impl PartialOrd for BlendMode
Source§impl StaticType for BlendMode
impl StaticType for BlendMode
Source§fn static_type() -> Type
fn static_type() -> Type
Self
.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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
Source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
Source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
Source§fn ensure_type()
fn ensure_type()
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.