1. Design & Illustration
  2. Add-Ons

Working With Irregular Shapes in Gradient Mesh in Adobe Illustrator

Scroll to top

Creating a Gradient Mesh from a rectangle or an ellipse is pretty easy and straightforward. When you have to work with an acutely curved shape, it becomes much more difficult. Here's a technique that will do the trick, and save you from frustration!


What Doesn't Work

We'll use this image from PhotoDune (no longer available) as a reference, and focus on the cup handle.

01_DiffShapes_source01_DiffShapes_source01_DiffShapes_source

If you were to start by tracing the outline of the handle, then going to the Object menu to Create Gradient Mesh, the results would be unwieldy. You'd spend way too much time trying to wrangle the mesh lines into place and adjust the color. The mesh lines that hang outside the shape won't prevent your illustration from printing or exporting, but they're a huge hassle to work with. As you can see, simply using Create Gradient Mesh is not a workable solution.

Using the Create Gradient Mesh function does not work well with shapes like this.Using the Create Gradient Mesh function does not work well with shapes like this.Using the Create Gradient Mesh function does not work well with shapes like this.
Using the Create Gradient Mesh function does not work well with shapes like this…
… as you can see.… as you can see.… as you can see.
… as you can see.

The White Rectangle Technique

Step 1

Take the Rectangle Tool (M) and draw a rectangle the same height as the base of the handle. We'll eventually bend this rectangle to conform to the shape, so try to imagine how long the handle would be if it were straightened out, and make the rectangle about that length. Make sure it has a fill of white and a stroke of none.

04_DiffShapes_draw-white-rect04_DiffShapes_draw-white-rect04_DiffShapes_draw-white-rect

Step 2

Now with the rectangle selected, go to Object > Create Gradient Mesh. Enter 1 row and 1 column, and choose Flat as the appearance.

05_DiffShapes_create-mesh05_DiffShapes_create-mesh05_DiffShapes_create-mesh

Step 3

Create a new layer for the rectangle. Lock the source image layer and put the new layer into Outline mode by Command-clicking (Windows: Control-click) on the eyeball in the Layers panel. Your artwork should look like the image below.

Command (Windows: Control)-click the Layer's eyeball to put that layer into Outline mode.Command (Windows: Control)-click the Layer's eyeball to put that layer into Outline mode.Command (Windows: Control)-click the Layer's eyeball to put that layer into Outline mode.
Command (Windows: Control)-click the Layer's eyeball to put that layer into Outline mode.

Step 4

Take the Direct Selection Tool (A) and move the left points to align with the base of the handle. Do the same with the two right points. This will be a little trickier, and you'll have to adjust the mesh handles as you go, to get the rectangle's edges out of your way. It's best to do it in increments – don't try to do it all in one step.

Move the bottom right point of the rectangle up to the base of the cup handle.Move the bottom right point of the rectangle up to the base of the cup handle.Move the bottom right point of the rectangle up to the base of the cup handle.
Move the bottom right point of the rectangle up to the base of the cup handle.
Move the top right point of the rectangle up to the cup handle. Move the top right point of the rectangle up to the cup handle. Move the top right point of the rectangle up to the cup handle.
Move the top right point of the rectangle up to the cup handle.
As you move the points, you'll have to adjust the curves as you go.As you move the points, you'll have to adjust the curves as you go.As you move the points, you'll have to adjust the curves as you go.
As you move the points, you'll have to adjust the curves as you go.

Step 5

Depending on the shape you're working with, it may help to add a couple of anchor points along the curve. These are not mesh points, but "helper" points that you can add using the Add Anchor Point Tool (+). You can now select these points with the Direct Selection Tool and use them to help define your shape. This can be a little time-consuming, but be patient and keep working with the shape to get it to conform to your source image.

Add points to help define the shape.Add points to help define the shape.Add points to help define the shape.
Add points to help define the shape.
The finished outline of the Mesh Object.The finished outline of the Mesh Object.The finished outline of the Mesh Object.
The finished outline of the Mesh Object.

Remember that the left two points of the original rectangle are aligned with the bottom base of the cup handle, and the right two points have curved around and will align with the top of the handle's base. Take your time: it's better to spend some time up front getting the shape exactly right, before you start adding color to it.

The original white rectangle ends up bending around the shape.The original white rectangle ends up bending around the shape.The original white rectangle ends up bending around the shape.
The original white rectangle ends up bending around the shape.

Step 6

Once the outline shape is done, start adding mesh lines to the interior of the shape. Take the Mesh Tool (U) and click on the left edge of the mesh object (the rectangle/cup handle). This will add a mesh line that follows the curve of the shape. Continue adding as many new mesh lines as you think is necessary. Use the color gradations in the source image to plan where you'll need lines of different colors.

13_DiffShapes_add-mesh-point13_DiffShapes_add-mesh-point13_DiffShapes_add-mesh-point
14_DiffShapes_add-mesh-point214_DiffShapes_add-mesh-point214_DiffShapes_add-mesh-point2

If the mesh lines start to get a little crowded, you can adjust their handles as you go using the Direct Selection or Mesh tools. To remove a mesh line, hold down the Option key (Windows: Alt), hover over the line you want to delete until you see a minus sign on the cursor, and click to delete.

Step 7

Using the Mesh Tool, click on any of the mesh lines you just created to add mesh lines that are more-or-less perpendicular to the existing mesh lines.

Click with the Mesh Tool to add vertical mesh lines.Click with the Mesh Tool to add vertical mesh lines.Click with the Mesh Tool to add vertical mesh lines.
Click with the Mesh Tool to add vertical mesh lines.

Step 8

Now that you have the foundation of your irregular shape, you can proceed to sample colors and adjust the transitions as you would normally. The finished cup handle is below.

16_DiffShapes_finished-handle16_DiffShapes_finished-handle16_DiffShapes_finished-handle

Now You Know!

Drawing rubber balls and grapes with gradient mesh is relatively easy. If you want to improve your mesh skills, challenge yourself with multi-surface objects. By breaking an object into its component parts and using the white rectangle technique, you'll be on your way to Gradient Mesh mastery.

Advertisement
Did you find this post useful?
Want a weekly email summary?
Subscribe below and we’ll send you a weekly email summary of all new Design & Illustration tutorials. Never miss out on learning about the next big thing.
One subscription. Unlimited Downloads.
Get unlimited downloads