Enum gsk4::BlendMode [−][src]
#[non_exhaustive]
pub enum BlendMode {
Show 16 variants
Default,
Multiply,
Screen,
Overlay,
Darken,
Lighten,
ColorDodge,
ColorBurn,
HardLight,
SoftLight,
Difference,
Exclusion,
Color,
Hue,
Saturation,
Luminosity,
// some variants omitted
}
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
The default blend mode, which specifies no blending
The source color is multiplied by the destination and replaces the destination
Multiplies the complements of the destination and source color values, then complements the result.
Multiplies or screens the colors, depending on the destination color value. This is the inverse of hard-list
Selects the darker of the destination and source colors
Selects the lighter of the destination and source colors
Brightens the destination color to reflect the source color
Darkens the destination color to reflect the source color
Multiplies or screens the colors, depending on the source color value
Darkens or lightens the colors, depending on the source color value
Subtracts the darker of the two constituent colors from the lighter color
Produces an effect similar to that of the difference mode but lower in contrast
Creates a color with the hue and saturation of the source color and the luminosity of the destination color
Creates a color with the hue of the source color and the saturation and luminosity of the destination color
Creates a color with the saturation of the source color and the hue and luminosity of the destination color
Creates a color with the luminosity of the source color and the hue and saturation of the destination color
Trait Implementations
type Checker = GenericValueTypeChecker<Self>
type Checker = GenericValueTypeChecker<Self>
Value type checker.
Get the contained value from a Value
. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Returns the type identifier of Self
.
Auto Trait Implementations
impl RefUnwindSafe for BlendMode
impl UnwindSafe for BlendMode
Blanket Implementations
Mutably borrows from an owned value. Read more
Returns a SendValue
clone of self
.