ShaderMask
A control that applies a mask generated by a shader to its child.
For example, ShaderMask can be used to gradually fade out the edge of a child by using a LinearGradient mask.
Examples
Adding a pink glow around image edges
python/controls/utility/shader-mask/shader-mask-single-image.py
loading...
Gradually fade out image to the bottom edge
python/controls/utility/shader-mask/shader-mask-gradient.py
loading...
Properties
blend_mode
The blend mode to use when applying the shader to the content.
Value is of type BlendMode and defaults to BlendMode.MODULATE.
border_radius
The radius of the mask.
Value is of type BorderRadius.
content
A child Control to apply a shader to.
shader
Use gradient as a shader.
Value is of type Gradient.