pub enum ClipBlendMode {
Show 17 variants
Normal,
Multiply,
Screen,
Overlay,
Darken,
Lighten,
ColorDodge,
ColorBurn,
HardLight,
SoftLight,
Difference,
Exclusion,
Hue,
Saturation,
Color,
Luminosity,
PlusLighter,
}Expand description
Blend mode, from W3C Compositing and Blending Level 1 (CSS mix-blend-mode) with the
specification’s formulas, plus plus-lighter from Level 2.
Variants§
Normal
Preserve source color and apply source-over coverage.
Multiply
Multiply source and backdrop components.
Screen
Inverse-multiply source and backdrop components.
Overlay
Multiply dark backdrop regions and screen light regions.
Darken
The darker of source and backdrop, per channel.
Lighten
The lighter of source and backdrop, per channel.
ColorDodge
Brighten the backdrop to reflect the source.
ColorBurn
Darken the backdrop to reflect the source.
HardLight
Multiply or screen, depending on the source.
SoftLight
Darken or lighten, depending on the source: a diffused hard light.
Difference
The absolute difference of source and backdrop.
Exclusion
Like difference, with lower contrast.
Hue
The source’s hue with the backdrop’s saturation and luminosity.
Saturation
The source’s saturation with the backdrop’s hue and luminosity.
Color
The source’s hue and saturation with the backdrop’s luminosity.
Luminosity
The source’s luminosity with the backdrop’s hue and saturation.
PlusLighter
Source and backdrop added, premultiplied color and alpha each clamped to 1 (Add or Linear Dodge in design tools). It replaces source-over rather than blending inside it.