Canddi

Custom Close Gaps in Adobe Illustrator

If a Live Paint fill spreads into the next part of your illustration, check for a gap between the paths. Illustrator can treat small gaps as closed, but sometimes you need to draw the boundary yourself to get the shape you want.

This tutorial develops a question from an Academy Class Illustrator session: how can you control the boundary between a character’s hair and face when automatic gap closure cuts across the wrong place?

Choose the right way to close the gap

  • A small accidental break: try Gap Options to stop colour flowing through it.
  • A boundary that needs a particular shape: draw a path along the intended edge and add it to the Live Paint group.
  • An incorrectly drawn outline: edit the existing path so that the surrounding edges meet.

Work on a duplicate of your artwork first. Live Paint divides intersecting paths into paintable areas, so a change to one boundary can affect the colours of neighbouring areas.

Check automatic gap detection first

  1. Select the Live Paint group.
  2. Choose Object > Live Paint > Gap Options.
  3. Enable Gap Detection and Preview. Adjust Paint stops at to cover the gap you need to close.
  4. Inspect the coloured gap indicators before accepting the result. Test the intended area with the Live Paint Bucket tool.

Custom Gaps adjusts the gap size Illustrator detects; it does not let you draw a custom contour. If the detected closure would cut across a sideburn or another deliberate feature, use a boundary path instead.

Draw a custom boundary and merge it

  1. Zoom in on the opening between the two areas. For a face-and-hair example, decide exactly where the hairline should run.
  2. Use the Pen tool to draw a path along that boundary. Give it a contrasting stroke temporarily so you can see it clearly.
  3. Make both ends meet or extend slightly beyond the existing edges. A path that stops short can leave another route for the fill to escape.
  4. Select the new path and the existing Live Paint group together.
  5. Choose Object > Live Paint > Merge to include the path in the group.
  6. Use the Live Paint Bucket to fill the face and hair separately. Check the highlighted area before clicking, then inspect both colours around the new boundary.

For more control over curves and anchor points, see our Pen tool reference.

Hide the construction line without removing the boundary

If the new dividing edge should not appear in the finished drawing, select that edge with the Live Paint Selection tool and set its stroke to None. Check that you have selected the intended edge before changing its appearance.

Removing a visible stroke and deleting a path have different effects. A boundary can remain useful without a visible line; deleting the path may join areas that you wanted to keep separate. Test the fills again after any structural edit.

If colour still crosses the boundary

  • Check group membership. A line sitting on top of the drawing is not necessarily part of its Live Paint group. Select it with the group and merge.
  • Check both ends. Follow the intended area’s outline all the way around; the remaining opening may be somewhere else.
  • Check the highlighted face. If the Bucket highlights both regions, the separation is not yet working as intended.
  • Check your last edit. Undo a change that unexpectedly recolours neighbouring areas, then adjust the path more carefully.

As a quick practice exercise, draw a closed outline with a divider that stops just short of one side. Make a Live Paint group and try filling either side. Extend the divider to meet the outline and test again. This makes it easier to recognise the same problem in a detailed illustration.

Adobe’s guidance on Live Paint gaps and adding paths to Live Paint groups provides further detail. For a related finishing technique, explore creating a thick outer line.

Build your Illustrator skills

Learn to construct cleaner paths, control fills and solve practical illustration problems. Contact Academy Class to discuss Illustrator training for your experience level and the work you want to create.