Choose Paint > Shape > Make Mask Shape, click the curves that define the mask shape, and click Accept.
You can create a mask from a curve or set of curves in a similar way that you create shapes from curves.
See Create a shape.
These curves will define the inner and outer boundaries of the shape.
The curves becomes a mask. By default, the outline is turned off, and the fill area, which acts as the mask, is outside the curves.
The Shape Editor lets you modify several parameters of the Shape such as color, opacity, and so on.
For a description of each option, see Windows > Editors > Shape Editor.
You can also set Global Auto-Shape Type to Mask in the Paint Panel. Curves that you draw will then automatically create mask shapes.
To create certain shapes, you may need to select the curves that define the shape in more than one location. Simply select each curve segment that forms a boundary of the shape region, even if you must select the same curve more than once. See Create a shape for more details.