Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
None
-
None
Description
There are 4 composition modes which are defined by W3C for CSS compositing [1] and are implemented by other painting libraries: Cairo [2], CoreGraphics [3], and Skia [4]:
- "hue" - hue of source and saturation and luminosity of target
- "saturation" - saturation of the source and hue and luminosity of target
- "color" - hue and saturation of source and luminosity of target
- "luminosity" - luminosity of source and hue and saturation of target
[1] https://www.w3.org/TR/compositing/#blendingnonseparable
[2] https://www.cairographics.org/manual/cairo-cairo-t.html#CAIRO-OPERATOR-HSL-HUE:CAPS and below
[3] https://developer.apple.com/documentation/coregraphics/cgblendmode/kcgblendmodehue, https://developer.apple.com/documentation/coregraphics/cgblendmode/kcgblendmodesaturation, https://developer.apple.com/documentation/coregraphics/cgblendmode/kcgblendmodecolor, https://developer.apple.com/documentation/coregraphics/cgblendmode/kcgblendmodeluminosity
[4] https://skia.org/user/api/SkBlendMode_Reference#Hue and below