04-03-2022, 06:37 AM
The 4 compositing modes are some equivalent to the Porter Duff compositing operators :
Union -> Source Over
Clip to Backdrop -> Source Atop
Clip to Layer -> Destination Atop
Intersection -> Source In
Technical details here https://www.w3.org/TR/compositing-1/#por...goperators
From the commits description:
- app: add merge layer mode
Merge mode lays the source layer on top of the destination, same as
normal mode, however, it assumes the source and destination are two
parts of an original whole, and are therefore mutually exclusive.
This is useful for blending cut & pasted content without artifacts,
or for replacing erased content in general.
- app: add split layer mode
Subtracts the source layer from the destination, such that
recompositing the result with the source using merge mode
reproduces the original content.
Union -> Source Over
Clip to Backdrop -> Source Atop
Clip to Layer -> Destination Atop
Intersection -> Source In
Technical details here https://www.w3.org/TR/compositing-1/#por...goperators
From the commits description:
- app: add merge layer mode
Merge mode lays the source layer on top of the destination, same as
normal mode, however, it assumes the source and destination are two
parts of an original whole, and are therefore mutually exclusive.
This is useful for blending cut & pasted content without artifacts,
or for replacing erased content in general.
- app: add split layer mode
Subtracts the source layer from the destination, such that
recompositing the result with the source using merge mode
reproduces the original content.