How to Draw Within Lines Procreate
StyleFrame Team8 min read
To draw within the lines in Procreate, select the area you want to paint with the Selection tool in Automatic mode, then paint on a layer beneath your line art. Only the selected region accepts paint. For a non-destructive alternative, use a Clipping Mask or Alpha Lock so strokes stay within the shape on the layer below.
Which method to use depends on whether you want to keep editing later. Selections are fast for one-off fills. Clipping Masks and layer masks are better when a client may ask for revisions.
Which method should you use?
Method 1: Automatic Selection, then invert
This is a reliable way to keep paint inside a line drawing. It is also one that trips people up, because the Select button behaves differently from what the name suggests.
- Put your line art on its own layer, and create a new layer below it for color.
- With the line art layer active, tap the Selection tool (the squiggly Select button).
- Choose Automatic mode and turn off Color Fill. If Color Fill is on, the tool floods the area with color instead of making a selection.
- Tap inside the shape you want to fill.
- Switch to your color layer, pick a brush, and paint. Strokes appear only inside the selection. The diagonal hatching marks the protected area.
- Tap the Selection icon again to exit selection mode.
The invert variant
Selecting the empty area inside a shape leaves the pixels under the line untouched. That often leaves a thin light fringe where anti-aliased line edges meet the fill. To avoid it:
- Tap the outside of the shape with Automatic selection.
- Tap Invert. The interior plus the line itself is now selected.
- Paint on the layer below the line art.
Paint now extends under the line, so soft edge pixels have color behind them. This also lets you change the blend mode of the line layer later without a background halo showing through. Anyone who has fixed a fringe on a keyed edge in After Effects will recognize the problem.
When the selection fails
- Nothing happens or no hatching appears: Automatic selection shows a highlight or tint rather than clear diagonal lines at first. Start painting on the right layer and the hatching appears on protected areas.
- The whole canvas fills with color: Color Fill is enabled. Turn it off.
- The selection leaks: Your line has a gap. Close it with a small brush stroke on a separate layer.
- Paint is blocked everywhere: Check that you are on the color layer, not the line art layer, and that the selection covers the right region.
Method 2: Clipping Mask
A Clipping Mask is the best choice when you want to paint freely and keep your work editable.
- Fill your base shape with a flat color on its own layer.
- Add a new layer directly above it.
- Tap the new layer and choose Clipping Mask.
- Paint, shade, or add texture. Strokes show only where the layer below has pixels.
You can stack several clipped layers for shadows, highlights, and texture, and change each one's blend mode and opacity independently. Move or delete the base layer and everything clipped to it follows.
If you work in After Effects, this is the same idea as a track matte using the layer above or below as an alpha source: one layer's transparency defines where another is visible.
Method 3: Alpha Lock
Alpha Lock protects the transparent pixels on a layer. Swipe two fingers to the right on the layer, or choose Alpha Lock from the layer menu. Any stroke is then applied only to pixels that already contain paint.
It is quick for recoloring a flat shape or adding a gradient. The trade-off is that it modifies the layer destructively. If you need to revisit the original flat color, duplicate the layer first or use a Clipping Mask instead.
The effect is similar to After Effects' Preserve Underlying Transparency option on a layer, except that Alpha Lock acts on the pixels themselves rather than as a reversible layer switch.
Method 4: Reference layer and Color Drop
For flat coloring of clean line art, Color Drop is the fastest option.
- Make sure your line art forms closed shapes.
- In the line art layer's menu, tap Reference.
- Create a new layer underneath for color.
- Drag a color from the color disc into a shape.
Because the line art is set as the reference, Color Drop reads the shape boundaries from it but places the fill on the active layer. That keeps your line work untouched and your fills on separate layers, which makes later changes easier.
If the fill leaks into neighboring areas, you have a gap. Close it. If you see an unfilled halo around the lines, use the invert approach from Method 1.
Method 5: Layer Mask for non-destructive control
When you want to hide paint rather than erase it, use a mask.
- Paint your color layer without worrying about edges.
- Tap the layer and choose Mask.
- Paint on the mask with black to hide, white to reveal.
You can also make a selection first and then add a mask, so the mask is generated from the selected area. If the edge needs adjusting later, repaint the mask. The color underneath stays intact. This workflow most closely matches how compositors already think about masks.
Habits that make staying inside the lines easier
- Keep line art on its own layer. Every method above depends on it.
- Close your shapes. One gap breaks Color Drop and Automatic selection.
- Use a separate layer for each material or element. Selections and masks then only need to protect that region.
- Use stabilization or streamline. Brush settings with higher stabilization give smoother, more controlled strokes.
- Paint under, not over. Placing color beneath the line art means small misses are hidden by the line.
- Save selections. For complex shapes, use Save & Load in the selection toolbar to reuse them later.
Getting Procreate artwork into a motion pipeline
If these drawings are headed to After Effects, Premiere Pro, or Nuke, structure the file for compositing from the start.
- Keep line art, flats, shading, and background on separate layers.
- Export layers as transparent PNGs, or export the full canvas as a layered PSD for After Effects import.
- Check the canvas size and color profile before exporting so frames match your comp.
- For frame-by-frame animation, give every frame the same layer structure so the exported sequence imports cleanly.
Because the colors sit on separate layers, you can adjust them in post without redrawing: change a fill, animate a shadow layer independently, or add secondary motion to isolated elements.
Where Styleframe fits after the drawing
Procreate gives you precise control over a single frame. Styleframe is useful once you want to extend those frames into motion or restyle them without losing that control.
Styleframe is an AI video and motion tool built for professional artistic control rather than one-click generation. Every result is driven by your own inputs: reference images, video clips, and keyframes.
- Frames-to-Video is keyframe-driven. You can use two or more hand-colored Procreate frames as the keyframes and generate the motion between them.
- Restyle and Ink-and-Paint use reference-driven style transfer. You can apply the line weight and fill treatment of your Procreate frame to other footage or artwork.
- 2D-to-3D and Turntable help turn a flat character or prop design into rotatable views for reference or layout.
- Remove Background cleans up elements before you composite them, and 4K Upscale increases resolution.
Iteration is non-destructive, so you can try different keyframes or references without overwriting earlier results. Output exports as image sequences, so it drops into an existing After Effects or Nuke comp. Your compositing workflow stays where it is. Keep the Procreate drawing as your art-directed source, and use Styleframe to carry it forward.
FAQ
Why does my paint still go outside the lines? You are probably painting on the line art layer or a layer with no active selection or clipping. Check the active layer and confirm the selection is still on.
What is the difference between Alpha Lock and a Clipping Mask? Alpha Lock edits the same layer and restricts painting to its existing pixels. A Clipping Mask uses a separate layer that depends on the layer below, so you can edit or remove it independently.
Which method is best for animation frames? Clipping Masks and Reference + Color Drop are the most consistent. Both keep fills on separate layers, so you can repeat the same setup frame to frame.
Why is there a white edge between my fill and line? The fill stops at the line's anti-aliased edge. Use the invert-selection method so color extends underneath the line, or put the fill layer beneath the line art and slightly expand it.