Blending
Set the compositing mode and opacity of a drawable.
Blend mode determines what the drawable paints into. Opacity applies once to the completed visual result.
Example
Multiply a shape against the scene background
Place a Multiply shape in a group with the default pass-through mode. Its gray paint multiplies with the scene’s gray background, giving approximately 64 in each RGB channel at (8, 4). The next group in the complete scene uses normal and starts its contents on transparency, giving gray 128 at (24, 4).
<group>
<shape blend-mode="multiply"><rect anchor-u="0" anchor-v="0" width="16" height="8"/><fill><paint><solid color="#808080FF"/></paint></fill></shape>
</group>Usage context
Trait Blending in the scene format type model.
Related pages in this reference are Drawable.
Attributes
opacity
Value fraction · If omitted 1 · Keys Scalar
Opacity from 0 to 1, applied once to the completed visual result.
blend-mode
Value normal, multiply, screen, pass-through · If omitted See <shape>, <group>, <sequence> · Keys Held
Blend the assembled drawable into its enclosing paint scope. See the allowed values on <sequence>.