How to Paint Within Lines Procreate
StyleFrame Team7 min read
To paint within lines in Procreate, put your color on a separate layer and let the line art control where it lands. The fastest way is to set the line art layer as a Reference layer, create a new layer beneath it, and drag colors in with Color Drop. For brush painting, use Automatic selection on the shape (or select the outside and invert), or use Alpha Lock and clipping masks, so strokes can't leave the shape.
Start With the Right Layer Structure
Every reliable method depends on the same setup: line art on its own layer, color on separate layers. If you paint on the line layer, or on a layer that already has color, you lose the ability to recolor, adjust, or export cleanly.
For motion work this matters more than it does for a single illustration. Layered, separated art can be handed to After Effects as individual elements, recolored without redrawing, and revised late in a project. A flattened file cannot.
A basic structure to build first:
- Line art on its own layer, ideally with closed shapes (no gaps in the outlines).
- Flat color layers beneath the line art, one per major element (skin, hair, clothing, background).
- Shading and highlight layers above their flat colors, constrained to the same shapes.
Method 1: Reference Layer + Color Drop
This is the quickest way to fill shapes accurately, and it keeps your lines untouched.
- Draw your line art and make sure every shape you want to fill is fully closed.
- Open the Layers panel, tap the line art layer, and choose Reference.
- Create a new layer beneath the line art and select it.
- Pick a color and drag it from the color swatch into a shape.
The fill is calculated from the line art but lands on your new, clean layer. You can fill an entire character in minutes without altering a single line pixel.
Two things that catch people out
Turn Reference off when you're done. If another layer later contains new shapes and Color Drop still refers to the old line art, you'll get odd leaks or fills that don't match what you see. Tap the Reference layer again to disable it.
Gaps break the fill. If color floods beyond a shape, there's an opening somewhere in the outline. Zoom in and close it with a small stroke on the line layer.
Method 2: Automatic Selection (Best for Brush Painting)
When you want to paint with textured brushes rather than flat fills, selection masks are the most controllable option. The painting is constrained to the selection, so you can scribble freely.
Select the inside of a shape
- Tap the Select tool (the squiggly icon) and choose Automatic.
- Make sure Add is active and Color Fill is off. If Color Fill is on, tapping will fill the area instead of selecting it.
- Tap inside the shape on the line art layer. The area will be selected, and once you pick a brush you'll see diagonal hatch marks outside the selection.
- Switch to a new layer below the line art and paint. Strokes stop at the selection edge.
- Tap Select again to exit.
A common mistake is selecting the layer content itself, which selects the lines rather than the empty space inside them. Automatic selection is what targets the empty area.
The invert trick
Instead of selecting the inside, tap the area outside the shape and then press Invert. Now the selection includes the interior and the lines themselves.
Why bother? When you paint inside this selection on a layer beneath the lines, color extends slightly under the line edges. That fills the semi-transparent anti-aliased pixels that a plain inside selection leaves behind, which prevents thin light halos between fill and outline. It also lets you change the line layer's blend mode without background pixels showing through. It's a classic pro colouring trick.
Method 3: Alpha Lock and Clipping Masks
Once a shape is filled with flat color, you can constrain further painting to that shape without making any new selections.
Alpha Lock
Tap the color layer and choose Alpha Lock. Now you can only paint on pixels that already have content. If your hair layer is filled brown, shading and highlights stay within the hair, and the transparent area around it is protected. This is ideal for rendering over flats.
Clipping mask
Add a new layer above the flat color layer and choose Clipping Mask. The new layer only shows where the layer below has pixels. Unlike Alpha Lock, the shading lives on its own layer, so you can:
- Reduce opacity or change blend mode (Multiply for shadows, Add or Screen for highlights) without touching the base color.
- Delete or redo shading without affecting the flat.
- Recolor the base layer and have all clipped layers follow the shape.
For production work, clipping masks are usually the better choice because they are non-destructive. Alpha Lock is faster for quick, one-off work.
Method 4: Multiply Layer Painting
The simplest and least precise approach: lock the line art layer, add a new layer above it, set the blend mode to Multiply, and paint by hand. Multiply keeps dark lines visible through the color.
This gives a loose, marker-like look and is good for expressive illustration. The tradeoffs are a steadier hand and no shape protection, so color can wander past lines. Combine it with a selection if you want the loose feel plus clean edges. Using stabilization on your brush can help with wobble.
Which Method Should You Use?
Most finished pieces combine two or three: Color Drop for flats, clipping masks for shading, and a selection for any area that needs a textured brush.
Troubleshooting Common Problems
Color leaks outside the shape. Check for gaps in the line art. Zoom in to 200–400% and look at corners and junctions where two strokes meet.
A white or light fringe remains between color and line. Use the invert selection method so the fill extends under the lines, or drop the line layer to Multiply so the color shows through.
Color Drop fills the wrong area. Reference may still be on for an outdated layer. Turn it off and re-enable it only on the correct line art layer.
Selection doesn't constrain strokes. Confirm you're painting on a layer while the selection is active, and that Color Fill mode isn't turned on. Also confirm you selected empty space, not the line pixels.
Taking Procreate Art Into a Motion Pipeline
If the end goal is animation or compositing, structure your Procreate file with the next step in mind.
- Keep elements on separate layers. Export as a layered PSD so line art, flats, and shading arrive in After Effects as editable layers.
- Name layers clearly. Hair_flat, hair_shade, line_main. This saves time when you're rigging or animating in After Effects or another tool.
- Use consistent canvas size and resolution. Match your composition's dimensions to avoid rescaling softness.
- Export frames as PNGs with transparency if you're drawing frame by frame, so they import cleanly as an image sequence.
Inside Procreate, painting within lines on every frame of a hand-drawn sequence is laborious. The reference layer method helps, but each frame still needs its own fills. That's the point where extending the look across frames becomes a different problem than filling shapes.
Where Styleframe Fits
Procreate is excellent at precise, layered drawing and flat coloring. Styleframe is a different kind of tool, aimed at carrying a look into motion once hand-filling every frame becomes impractical.
If you've established a look in Procreate, such as inked outlines with flat color, you can use it as a reference when extending that style across frames.
To be clear about the division of labor: Styleframe doesn't replace the precise fill control you get from Reference layers and selections in Procreate. Your layered Procreate work stays your source of truth, and compositing stays where you already do it.
Quick Checklist
- Line art on its own layer, shapes closed.
- Set the line layer to Reference and Color Drop onto a layer beneath.
- Turn Reference off when finished.
- Use Automatic selection (or invert) for textured brush work.
- Use clipping masks or Alpha Lock for shading.
- Export layered files or transparent PNG sequences for motion work.
Once the layer structure is right, staying inside the lines stops being a matter of steady hands and becomes a matter of setup.