CompositionBlendMode
enum · ferroui-base · v0.5.0
enum CompositionBlendMode
Members
ClearSrcDstSrcOverDstOverSrcInDstInSrcOutDstOutSrcATopDstATopXorPlusModulateScreenOverlayDarkenLightenColorDodgeColorBurnHardLightSoftLightDifferenceExclusionMultiplyHueSaturationColorLuminosity
Clear
Clear
No regions are enabled.
Src
Src
Only the source will be present.
Dst
Dst
Only the destination will be present.
SrcOver
SrcOver
Source is placed over the destination.
DstOver
DstOver
Destination is placed over the source.
SrcIn
SrcIn
The source that overlaps the destination, replaces the destination.
DstIn
DstIn
Destination which overlaps the source, replaces the source.
SrcOut
SrcOut
Source is placed, where it falls outside of the destination.
DstOut
DstOut
Destination is placed, where it falls outside of the source.
SrcATop
SrcATop
Source which overlaps the destination, replaces the destination.
DstATop
DstATop
Destination which overlaps the source replaces the source.
Xor
Xor
The non-overlapping regions of source and destination are combined.
Plus
Plus
Display the sum of the source image and destination image.
Modulate
Modulate
Multiplies all components (= alpha and color).
Screen
Screen
Multiplies the complements of the backdrop and source color values, then complements the result.
Overlay
Overlay
Multiplies or screens the colors, depending on the backdrop color value.
Darken
Darken
Selects the darker of the backdrop and source colors.
Lighten
Lighten
Selects the lighter of the backdrop and source colors.
ColorDodge
ColorDodge
Brightens the backdrop color to reflect the source color.
ColorBurn
ColorBurn
Darkens the backdrop color to reflect the source color.
HardLight
HardLight
Multiplies or screens the colors, depending on the source color value.
SoftLight
SoftLight
Darkens or lightens the colors, depending on the source color value.
Difference
Difference
Subtracts the darker of the two constituent colors from the lighter color.
Exclusion
Exclusion
Produces an effect similar to that of the Difference mode but lower in contrast.
Multiply
Multiply
The source color is multiplied by the destination color and replaces the destination.
Hue
Hue
Creates a color with the hue of the source color and the saturation and luminosity of the backdrop color.
Saturation
Saturation
Creates a color with the saturation of the source color and the hue and luminosity of the backdrop color.
Color
Color
Creates a color with the hue and saturation of the source color and the luminosity of the backdrop color.
Luminosity
Luminosity
Creates a color with the luminosity of the source color and the hue and saturation of the backdrop color.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeResourceKeyObjectPropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherBatchValueCloneCopyDebugDefaultStructuralPartialEqPartialEqEqHash
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.