pub enum ClipBlendMode {
Show 16 variants
Normal,
Multiply,
Screen,
Overlay,
Darken,
Lighten,
ColorDodge,
ColorBurn,
HardLight,
SoftLight,
Difference,
Exclusion,
Hue,
Saturation,
Color,
Luminosity,
}Expand description
Artistic blend operation stored independently from a renderer implementation.
The modes are those of W3C Compositing and Blending Level 1 (the CSS
mix-blend-mode values), with the specification’s formulas.
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.