Reference

ShaderMask

ShaderMask

ShaderMask control. Build it with the shader_mask helper.

Example

shader_mask(
  text("Ruflet", size: 36),
  blend_mode: "srcIn"
)

Properties

  • blend_mode
  • border_radius — Corner radius.
  • content — The single child control rendered inside this control.
  • shader

Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).

Events

  • on_animation_end — Fired when an animation completes.
  • on_size_change — Fired when the control's size changes.

Reference

  • Family: shared
  • Widget type: shadermask
  • Helper: shader_mask