Mask layers
Mask layers are identical to vector layers in Skala, with one very important difference — masks paint transparency, rather than color. This means they can be used to cut holes in artwork below them.
To create a mask layer, choose Layer › New Mask Layer, or press ⇧⌘M. Just like vector layers, mask layers can contain shapes and text, and shapes within a mask layer can be combined using shape boolean operations. Editable text can erase holes in layers below them.
A mask layer affects the layers below it within the same group. Layers above the mask, and layers outside the group, are left alone.
There’s many situations where using a mask layer is preferable to other techniques. The donut shape below has a glow around the outside, but not on the inside. Let’s assume that is the desired result. If it was created by using shape boolean operations, then the glow would also be on the inside.
Opacity and alpha blending #
Another advantage of mask layers is the ability to use opacity and alpha blending. Both can be changed on the mask tab of the properties window. The moon-like example below is easy with masks, but more challenging by just using shape boolean operations (getting the antialiasing correct is the tricky bit).
Text with a shadow like the image below usually requires a lot of messing around. In Skala, live text can be used as a mask, and this example can be created with just two vector layers and a mask layer. The text could also use a constant to make editing and keeping things in sync easier.
Masks within vector groups #
Masks can also be nested inside vector groups, allowing for incredibly flexible masking with multiple levels of hierarchy.
Masks and compositing #
In Skala, groups are merged when being composited. This means mask layers, color blending, and alpha blending are contained, and can not affect layers outside the group.
Further reading: Layers and groups, alpha blending, and color blending