How to Restrict Shading to One Existing Color Region in Krita
To shade one existing color region in Krita, select that region first, then paint on a separate shading layer while the selection remains active. If the region already occupies its own transparent layer, use Alpha Lock for direct painting or Alpha Inheritance for separate shading layers. Krita’s selections let you paint within a chosen area without changing surrounding sections. Selections — Krita Manual
This guide is for someone shading an existing character illustration—for example, adding a shadow to one colored patch while leaving adjacent patches unchanged. The first decision is whether your target is a color within a layer or the entire painted content of a layer.
Which method fits your existing artwork?
Choose the boundary you need before choosing a control. Color selection identifies pixels by their color; alpha controls use transparency. These produce different results when several colors share one layer. Similar Color Selection Tool, Layers — Krita Manual
| Your artwork | Recommended method | What defines the boundary? |
|---|---|---|
| Several colors share a layer; you want one connected patch | Contiguous Selection, then a shading layer | The connected area around the clicked color |
| You want matching color patches, including disconnected ones | Similar Color Selection, then a shading layer | Color similarity across the reference layers |
| Only the target shape occupies a transparent paint layer | Alpha Lock | That layer’s existing transparency |
| The target shape has its own layer and needs editable shading above it | Alpha Inheritance inside a group | The combined transparency beneath the shading layer in that group |
The distinction between connected and disconnected patches matters. Contiguous Selection follows a connected area of similar color; Similar Color Selection can include separated areas. If two separate character details share the same blue, the latter can select both. Contiguous Selection Tool, Similar Color Selection Tool
How do you select one connected color region?
Start with Contiguous Selection when your target is one patch among several colors on a paint layer. Its reference setting determines which layers it examines, so establish that before clicking. Contiguous Selection Tool
- Select the layer containing the existing flat colors.
- Activate Contiguous Selection, the magic-wand tool.
- In Tool Options, set Reference to Current Layer when that layer contains the boundary you need. Use All Layers only when the visible composite should define the region.
- Set the selection action to Replace, then click inside the target patch.
- Inspect the selected area before painting. Lower Threshold if neighboring colors enter the selection; increase it cautiously if slightly different pixels within the patch remain excluded.
For several disconnected pieces that belong to the same target, use the Add selection action and click each piece. This gives you deliberate control over which patches join the selection. The manual documents both selection actions and their modifier keys. Selections — Krita Manual
How do you shade the selection without altering the flats?
Once the boundary is correct, create a new paint layer above the flats. Krita’s new-layer button creates a paint layer by default; you can also press Insert. Name it something recognizable, such as “Patch shading.” Keep any separate line-art layer above it so the lines remain visible. Paint Layers, Flat Coloring
Leave the selection active, switch to your painting brush, and add the shadow on the new layer. A soft brush can create a gradual transition inside the selected boundary; a firmer brush can define a distinct shadow shape. You can also use a gradient within a selection. When finished, choose Select → Deselect. Selections — Krita Manual
For an illustrative character patch, begin with a darker version of its base color and paint along one edge. Evaluate the result before adding another pass. Because the shading occupies its own layer, you can hide it for comparison or adjust its layer opacity independently. Those controls are available in the Layers docker. Layers — Krita Manual
When should you use Alpha Lock instead?
Use Alpha Lock when the target shape is already isolated on a transparent paint layer and you are comfortable changing its painted colors directly. Select that layer, enable its checkerboard Alpha Lock control, and paint your shading onto it. Alpha Lock preserves the layer’s transparency. Layers — Krita Manual
An independent tutorial demonstrates the same behavior by filling an alpha-locked layer: the opaque content changes color while transparent pixels remain transparent. For shading, apply brush strokes rather than filling the entire layer. How to Make an Entire Layer a Single Color in Krita — Virtual Curiosities
This explains a common failure: Alpha Lock cannot isolate one color on a fully painted, multicolored layer. Its boundary follows transparency, so all painted color regions remain available to the brush. Use a color selection for that situation. Also distinguish Alpha Lock from the ordinary layer lock, which prevents editing the layer altogether. Layers — Krita Manual
How can you keep shading separate with Alpha Inheritance?
If your target region already has its own transparent base layer, Alpha Inheritance provides a reusable boundary for separate shading. Krita’s official tutorial describes grouping the base layers and enabling inheritance on a layer above them. Clipping Masks and Alpha Inheritance
- Place only the target base layer inside a group.
- Add a paint layer above it, inside that same group.
- Enable Alpha Inheritance on the upper shading layer; leave the base layer’s inheritance disabled.
- Keep the group’s Pass-through mode disabled.
- Paint on the shading layer and check its visible boundary.
Inheritance uses the combined transparency below the shading layer within its group. Consequently, an opaque background or additional colored shapes beneath it can enlarge the available area. Keep unrelated content outside this group. The official manual also cautions that inheritance does not work correctly with group pass-through enabled. Clipping Masks and Alpha Inheritance
A shortcut is to select the isolated base layer and press Ctrl + Shift + G. Krita creates a quick clipping group with an alpha-inheriting layer above it. This setup still depends on the base containing the intended region; grouping a multicolored flat layer does not separate its colors. Clipping Masks and Alpha Inheritance
How do you fix missed edges or unwanted shading?
Inspect the boundary at a close zoom before committing to detailed shading. Diagnose the selection itself first, then the layer arrangement.
| Symptom | What to check |
|---|---|
| A separate patch of the same color is selected | Use Contiguous Selection instead of Similar Color Selection, or subtract that patch. |
| Neighboring colors are included | Reduce Threshold and recreate the selection. |
| A thin unshaded rim remains | Inspect the edge pixels and test a small positive Grow Selection value. |
| The boundary looks unnecessarily soft | Check Feathering Radius; begin at zero for a precise flat-color boundary. |
| Shading appears over several base shapes | Check which layers sit below the inheriting layer inside its group. |
Anti-alias, Grow Selection, and Feathering Radius solve different problems: smoothing jagged edges, expanding or contracting the boundary, and adding softness. As an illustrative adjustment, try one pixel of growth and inspect the result; expansion can also enter an adjacent region, so it is not a universal setting. Contiguous Selection Tool
For repeated work on the same region, save its selection through right-click layer → Add → Local Selection. Krita’s flat-coloring tutorial documents selection masks as a way to retain separate areas for later edits. Flat Coloring
Finish by inspecting the shaded patch alongside its neighboring colors, then toggle the shading layer’s visibility to compare the result. For a region embedded in shared flats, the selection workflow gives you an explicit boundary. For an isolated base shape, a clipping group makes subsequent shading easier to revise without repeatedly selecting its color.
Sources
- Contiguous Selection Tool — Krita Manual
- Similar Color Selection Tool — Krita Manual
- Selections — Krita Manual
- Layers — Krita Manual
- Paint Layers — Krita Manual
- Flat Coloring — Krita Manual
- Clipping Masks and Alpha Inheritance — Krita Manual
- How to Make an Entire Layer a Single Color in Krita — Virtual Curiosities
