Krita does not have a clipping-mask command under that name. It uses Inherit Alpha on a layer inside a group, which limits painting to the opaque pixels of the layers below it in that group. Alpha Lock does a related job on a single layer, by confining painting to pixels that already exist. Krita’s manual covers both under clipping masks and alpha inheritance.
Clip a layer with Inherit Alpha
- Select the base layer and the layer you want to clip, then press Ctrl+G to group them. Or use the Quick Clipping Group command, which creates a group with a new layer already set up. In many versions it is Ctrl+Shift+G.
- Make sure the base layer is at the bottom of the group.
- Turn on Inherit Alpha for the layer above it. The toggle is in the Layers docker.
- Paint. Your strokes appear only over the opaque pixels of the base layer.
The group is what limits the effect. A layer outside the group is not clipped. You can stack several clipped layers above the base for shadows, highlights and texture, and each one can have its own blend mode.
Lock a single layer with Alpha Lock
- Select the layer.
- Turn on Alpha Lock in the Layers docker. The icon looks like a checkerboard or a lock, depending on your version.
- Paint. Only the pixels that already have color change.
Alpha Lock is useful for recoloring line art or painting shadows over a finished shape on the same layer. Because the paint lands on the layer’s own pixels, it is harder to separate from the base later than a clipped layer is.
Clipping vs Alpha Lock
| Inherit Alpha in a group | Alpha Lock on one layer | |
|---|---|---|
| Layers needed | Two or more (a base and a clipped layer) | One |
| Original pixels | Stay on the base; the clipped layer is separate | Painted over directly |
| Editing later | Easy to change, move or hide the clipped layer | Harder to separate the paint from the base |
| Good for | Shading, texture, color changes and highlights inside shapes | Quick recoloring and detail on a single layer |
| Blend modes | Each layer has its own | Shared by all the paint on the layer |
As a rule of thumb, use Inherit Alpha when you may want to change the shading later. Use Alpha Lock when the change is small and you do not need to separate it out.
Shading inside a shape
To shade a flat color, place a clipped layer above it inside a group. Paint the shadow in a tinted color, or use a Multiply or neutral layer, and the shadow stays inside the shape. For the full shading setup, see shading and canvas texture in Krita.
Glows that extend past the edge
Inherit Alpha keeps paint inside the shape, so a glow or a soft outer shadow cannot spill out while it is on. For those effects, turn Inherit Alpha off on that layer, then use a blend mode such as Screen or Color Dodge to build the glow. For more on building light this way, see dodge and burn in digital painting. Keep the glow on its own layer so you can adjust its opacity separately.
An alternative: Erase blend mode in a group
A Krita Artists thread describes a workaround that uses the Erase blend mode. Put a paint layer set to Erase in a group above the layers you want to cut, and it removes paint from the layers beneath it within that group, without affecting layers outside the group. This is a workaround reported by forum users. For most clipping jobs, Inherit Alpha is simpler.
Troubleshooting
- Paint spills past the shape. Check that the clipped layer is in the same group as the base, and that Inherit Alpha is on.
- Nothing shows. The base layer may be empty, or it may sit above the clipped layer in the group. The base must be below it.
- The clip stops working after a move. Dragging a layer out of the group breaks the clip. Drag it back in.
- A glow is cut off. Turn Inherit Alpha off for that layer.
For the keys that group and transform layers, see Krita keyboard shortcuts. For the wider painting setup, see the Krita guide for digital painting.