#[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
§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 PartialEq<BlendMode> for BlendMode
impl PartialEq<BlendMode> for BlendMode
source§impl PartialOrd<BlendMode> for BlendMode
impl PartialOrd<BlendMode> for BlendMode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§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 StructuralEq for BlendMode
impl StructuralPartialEq for BlendMode
Auto Trait Implementations§
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> IntoClosureReturnValue for Twhere
T: Into<Value>,
impl<T> IntoClosureReturnValue for Twhere T: Into<Value>,
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 Twhere
T: Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere T: Send + ToValue + ?Sized,
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
SendValue
clone of self
.