Any layer can now be a mask in the editor: text, shapes, images, video, even whole groups. Choose how the mask cuts, nest masks inside each other, and animate the mask and what it reveals on their own.
What's new
Until now, masking in Pencil was limited, and a mask was fixed to the image it cut. Masked images were often made in Figma or Photoshop and imported, and reveals and wipes had to be built in another tool. Now a mask is a layer like any other. You can make one from any layer, move and animate it, and see exactly what it clips in Layers.
Make any layer a mask
Right-click a layer on the canvas, click the Mask button in the settings bar, or open the ⋮ menu on a layer row, and choose Use as mask. You can also press ⌃⌘M (Ctrl+Alt+M on Windows). Selecting several layers and using Use as mask puts them in a Mask group, with the bottom layer as the mask. To mask another layer, drag it into the group above the mask.
Choose how the mask cuts
In the Mask section of the right panel, set the mask type to Alpha, Vector or Luminance. Mask groups can sit inside other mask groups, so you can layer one mask over another.
Animate the mask and its content
A mask has its own position, size, rotation, keyframes and timing. Move or animate it to build reveals and wipes, while the layers it masks, video included, keep playing underneath on their own timing.
See and manage masks in Layers
Layers links each mask to the layers it clips and tags it Mask. To remove a mask, click the mask icon in its panel header or press ⌃⌘M again with the mask selected. Dragging a mask out of its group in Layers turns it back into a plain layer.
A few things to know
- Masks carry into PNG, PDF, PSD and HTML5 exports, and animated masks play in HTML5.
- Masks made before this release still show as they did, but you can't edit them. Remove one, or choose Convert to mask group to turn it into the new kind. Pencil won't convert a mask if it would change how the layer looks, and tells you why.
- A mask always sits outside auto layout, and applying a brand skin leaves masks untouched.
- While a mask is selected, clicking inside its box selects the mask. Shift-click, or deselect it first, to reach the content underneath.