Skip to main content

shape_mask_definition

Function shape_mask_definition 

Source
pub fn shape_mask_definition() -> EffectDef
Expand description

The shape-mask pass: up to MAX_SHAPE_MASKS rectangles (with rounded corners) or ellipses, each with a feathered edge, combined in order.

Per mask i the parameters are m{i}_center, m{i}_size (full extent), m{i}_rotation (radians, clockwise), m{i}_radius and m{i}_feather (as fractions of the shorter side of the pass), m{i}_ellipse, m{i}_invert, and m{i}_mode; count says how many are in use.