asCompositeColor¶
A node to composite two RGBA inputs using Porter-Duff [Porter:1984:CDI:800031.808606] compositing operators.
Parameters¶
Color Parameters¶
- Source Color
- The source color.
- Source Alpha
- The source alpha channel.
- Destination Color
- The destination color.
- Destination Alpha
- The destination alpha channel.
- Composite Mode
The composite operator [1] to use. It can take the following values
- Source
- Destination
- Over
- Under
- In
- Mask
- Out
- Stencil
- Atop
- Dst-Atop
- Xor
- Matte
See also
Merging and Transformation of Raster Images for Cartoon Animation [Wallace:1981:MTR:965161.806813] and the W3.org webpage for a detailed view on compositing algebra in general.
- Clamp Output
- Checking this checkbox will clamp the output into the [0,1] range.
Outputs¶
- Output Color
- The composited color.
- Output Alpha
- The alpha with the result of the compositing operation.
Footnotes
[1] | The original Porter-Duff paper (PDF file) can be found here. |
References
[PD84] | Thomas Porter and Tom Duff. Compositing digital images. In Proceedings of the 11th Annual Conference on Computer Graphics and Interactive Techniques, SIGGRAPH ‘84, 253–259. New York, NY, USA, 1984. ACM. URL: http://doi.acm.org/10.1145/800031.808606, doi:10.1145/800031.808606. |
[Wal81] | Bruce A. Wallace. Merging and transformation of raster images for cartoon animation. SIGGRAPH Comput. Graph., 15(3):253–262, August 1981. URL: http://doi.acm.org/10.1145/965161.806813, doi:10.1145/965161.806813. |