Chapter 12
IN THIS CHAPTER
Defining and applying gradients
Using blends for productivity and design
Defining and applying transparency to objects
Styling with opacity blends
Combining transparency and gradients in opacity masks
Let’s talk about the real world for a moment. Objects in the real world can't be represented simply with vectors with solid strokes and solid-color, opaque fills. In real life you encounter objects with colors that merge gradually. In Illustrator, you can more closely approximate a real object by using gradients to generate and fine-tune transitions between colors.
In real life, objects that are the source of an illustration (or a product of the imagination) are often part of a larger set of objects. For example, a step is usually part of a staircase. A stone in a creek might be part of a path of stones that cross the creek. In Illustrator, you can use blends to generate sets of objects that transition from one object to another along a defined path.
In real life, not all objects are opaque (hiding everything behind them). Many elements of an illustration, such as a windowpane or thin piece of fabric, reflect real-life objects that are only partially opaque, with an aspect of transparency. Illustrator’s transparency features allow you to apply any degree of transparency to objects, from fully opaque to almost completely transparent.
In this chapter, I show you how to use gradients, blends, and transparency to bring illustrations to life.
Gradients merge two or more colors in an object. Gradients can be used to reflect color transitions in real-life objects. Figure 12-1, for example, captures the transition between the white part of a watermelon slice that is no fun to eat, and the sweet, juicy, red part that is almost too much fun to eat.
Gradients can add the appearance or feel of three-dimensional depth to an illustration. In Figure 12-2, I added gradients to add depth to the room with receding light.
Illustrator CC allows you to generate three types of gradients:
You apply defined gradients to selected objects pretty much the same way you apply color to objects. If you’re not familiar with organizing and applying color, a quick visit to Chapter 11 will serve as a helpful prerequisite to working with gradients.
The short version is this: Select an object and then click a gradient in a swatch panel, and the gradient is applied to the selected object.
There’s more to the story, of course. Gradients can be tweaked, created from scratch, and applied in many different ways, as I outline in the introduction to this chapter. But let’s start with the basics: picking a gradient and applying it to an object.
The simplest way to apply a gradient is to use an Illustrator preset gradient. Illustrator provides an impressive set of built-in gradients, and custom gradients (I get to those next) often begin with a preset.
You access Illustrator’s robust set of preset gradients by choosing Window ⇒ Swatch Libraries ⇒ Gradients and then clicking one of the many sets of gradient swatches.
When you select an object and choose a gradient from any of the swatch libraries, that gradient is applied to the selection, and the gradient swatch is added to your document’s Swatches library. Figure 12-6 shows three gradient swatch libraries, with a gradient (Sky 3) being applied to a selected rectangle, and all applied gradients added to the Swatches panel.
If you want to apply a gradient to a stroke (and you can!), change the Tools panel color focus to Stroke, and then click the gradient swatch you want to load into the Stroke color box. With the gradient defined as a stroke color, click any object to apply the gradient to that object’s stroke, as shown in Figure 12-7.
If the dozens of preset gradient swatch libraries don’t have the gradient you need, you can edit an existing one or create one from scratch.
If you're customizing an existing gradient, start with these steps:
Select a starter gradient in the Swatches panel.
If the gradient you're using as a starter gradient is not in the Swatches panel, drag it there from one of the gradient swatch libraries.
Open the Gradient panel to edit the gradient.
With the new gradient selected in the Swatches panel, view the Gradients panel, as shown in Figure 12-9.
You’re now ready to edit the properties of the swatch. I explain how to do that next.
To create a gradient, I usually start with an existing gradient and tweak it, as I explain in the preceding section. But you can also create a gradient from scratch. Do that by double-clicking the Gradient tool in the Tools panel (on the Basic toolbar). The Gradient panel opens, ready for you to define a new gradient.
The next step is to choose a gradient type. As I note in the beginning of this chapter, the three types of gradients are linear, radial, and freeform. The process of defining each of these is similar.
Because linear gradients are the most widely applicable, l start by explaining how to define a linear gradient, and how to apply linear gradients interactively with the Gradient tool. Then I point out what’s different when you define and apply a radial or freeform gradient.
Linear gradients can be horizontal, vertical, or diagonal — I demonstrate all three options at the beginning of this chapter.
Follow these steps to define any one of the three types of linear gradients:
Add color stops:
Color stops can be placed or moved anywhere on the gradient ramp.
To delete a gradient stop, drag it out of the Gradient panel.
Adjust the location of the transition between color stops.
After you create gradient stops and apply colors to them, adjust the gradient by changing the location of the diamond-shaped midpoints between each color stop, as shown in Figure 12-11.
Define transparency.
You can define opacity for each selected color stop; lowering the opacity applies some transparency to that color. In Figure 12-13, I dialed down the opacity of the far left color stop to 20%. You can see that when this gradient is applied to the rectangle, the underlying black ellipse shows through the semitransparent section of the gradient.
To change the location of gradient stops, drag them to a different location on the gradient slider.
Alternately, you can define a location value of a selected color stop in the Location box at the bottom of the Gradient panel. Color stop locations values are defined in percent, with the beginning of the gradient at 0% and the end at 100%.
Save your defined gradient:
When you save your document, the swatches panel is saved with the document, including your defined gradients.
Defining a radical gradient in the Gradients panel is similar to defining a linear gradient. The most essential difference is that you select the radial gradient icon in the Gradient panel when you define the gradient, as shown in Figure 12-16.
Following are a couple radial-specific tips:
Gradient Annotator lets you edit gradients directly on the canvas as they are applied to an object. To activate Gradient Annotator, select an object with a gradient applied to it, and click the Gradient tool.
Wielding Gradient Annotator is pretty intuitive. For linear gradients, Gradient Annotator essentially replicates the options in the Gradients panel for defining a gradient, except that you can apply those options and see the effect instantly. And when you display Gradient Annotator, you also see the Gradient panel, so you can bounce back and forth between changing settings interactively with Gradient Annotator and entering values in the Gradient panel.
Here’s how to apply changes to a gradient with Annotator:
The linear and radial gradients explored so far in this chapter are defined by and emanate from a single point. They can flow from one side of a graphic to another, or from somewhere within an elliptical frame to another point within that elliptical frame.
For more complex gradients, Illustrator offers two options: the Gradient Mesh tool and freeform gradients. Both options allow you to define gradients using multiple points, not just one point. For a gradient mesh, those multiple sources are bunches of points. For freeform gradients, those sources are either a set of points or a line. I focus on the points option because it's more widely applicable.
A freeform points gradient is defined by a set of color stops that function as independent points within the object to which the gradient is applied.
The following steps demonstrate how to create and apply a freeform line gradient:
Recolor the freeform gradient stops.
Double-click a stop to open the color panel and change the color, as shown in Figure 12-23. To assign the same color to multiple stops, Shift-click multiple stops and open the Color panel (choose Window ⇒ Color).
Freeform gradients tend to be use-once-and-that’s-it because they are so specific to the size and shape of the object to which they are applied. You can't save them as swatches. But you can copy them and apply them to other objects using the Eyedropper tool.
Illustrator blends are both a design tool and a productivity tool. Blending exploits the fact that because vector graphics are, deep down, just math, we can apply complex math to figure out how transitional objects between two selected objects should look.
Blends can be used to save the work of seemingly endless copying, pasting, and tweaking sets of objects, such as the set of stairs in Figure 12-25.
Or blends can be a design tool when used to create a rough, gradient-like look, as shown in the panda in Figure 12-26.
Blends can be smooth or steps. Smooth blends are file-size and processor heavy. The results of a step blend overlap considerably with the effects available (generally more efficiently) from gradients.
Step blends (as illustrated in Figures 12-25 and 12-26) can save time in generating multiple objects along a path and can be used for interesting effects. For those reasons, I focus on step blends.
Before you apply a blend, use the Blend Options dialog box to define the kind of blend you want to apply and how you want to apply it. To access the Blend Options dialog, double-clicking the Blend tool in the Basic toolbar or choose Object ⇒ Blend ⇒ Blend Options.
The following list explains the defining options for step blends:
You can redefine these options for an existing blend by selecting the blend and choosing Object ⇒ Blend Options.
To apply a blend after you’ve defined blend options, select two (only two) objects and choose Object ⇒ Blend ⇒ Make.
To remove a selected blend, choose Object ⇒ Blend ⇒ Release.
After you generate a blend between two or more paths, you can modify the blend interactively on the artboard. Simply use the Direct Selection tool to move one of the objects used to create the blend, as shown in Figure 12-27.
You can also change the curve of a blend by editing the anchors that define the path, as shown in Figure 12-28.
Sometimes, after letting Illustrator’s Blend tool do the work of generating a bunch of objects, you’ll want to change the result into discrete, editable objects. You do that by expanding the blend: Select the blend and choose Objects ⇒ Blend ⇒ Expand. The result is a set of grouped objects that you can edit. After you expand a blend, it loses its blend properties. You can no longer adjust the blend options or edit the path on which the blend is applied.
Transparency is a hot topic these days. Political candidates are supposed to be transparent about where their funding comes from. Websites are supposed to be transparent about where their content comes from. Consultants are supposed to disclose where they have invested in a product they recommend. If you’re looking for advice on the ethical and legal implications of all this, I have to be completely transparent: You bought the wrong book.
But if you’re looking to apply semi-opacity to objects in Illustrator, you have the right book and you’re reading the right section.
Transparency is applied in degrees, ranging from 1 percent (almost completely opaque) to 99 percent (almost completely invisible). An object with 0 percent opacity is completely transparent, and an object with 100 percent opacity has no transparency.
You can define some transparency features from the Control and Properties panels, but to get to one-stop-shopping for all transparency features, choose Window ⇒ Transparency. The Transparency panel that opens can define opacity and transparency for any selected object or objects.
Note that I wrote “object or objects.” You can apply transparency to multiple selected objects. When semitransparent objects overlap, their opacity reflects the sum of the opacity of each object. For example, in Figure 12-29, the two red objects alone are 50 percent opaque but are 75 percent opaque where they overlap.
When you apply transparency from the Transparency panel, the level of opacity you choose is applied to all selected objects. And it is applied to both the stroke and the fill of an object.
To apply transparency settings to only the stroke or fill of an object, select the object to which you want to apply transparency and open the Appearance panel. Then click Stroke or Fill in the panel, and adjust the transparency for each. Figure 12-30 shows 25% transparency assigned to a red fill, and no transparency assigned to the black stroke.
In addition to normal transparency, Illustrator’s Transparency panel provides blending modes that transform colors in the underlying layer. These blending modes work something like sunglasses or a colored piece of glass — tinting, distorting, or enhancing the effect of a transparent overlay.
The following blending effects are available in the Transparency panel from the blending mode drop-down list (which is displaying Normal in Figure 12-30). You can experiment with them, but here are short explanations of what to expect from each:
In Figure 12-31, I picked four blending modes to compare to normal transparency.
If your output is destined for hardcopy that will use spot color printing, avoid the Difference, Exclusion, Hue, Saturation, Color, and Luminosity blending modes. They’re not supported by spot colors. For more on spot color printing, see Chapter 11 and the discussion of working with print shops in Chapter 2.
An opacity mask reveals part of an underlying object through an opacity lens. Let me break that down: Opacity masks combine transparency, explained in the earlier part of this section, and masking.
In this section, you see how opacity masks work, which gives me a chance to describe how transparency and gradients can combine to create some cool results.
The following steps walk through an example of applying a gradient fill as an opacity mask:
Use the circle as an opacity mask.
Select both the mask object (the circle) and the underlying illustration and choose Make Opacity Mask from the Transparency panel menu, as shown in Figure 12-33, or use the Make Mask button in the panel.
The opacity mask uses the intensity of the grayscale value of the masking object (not the actual colors) to apply a gradient-like filter over the underlying object, combining transparency and gradients to produce some interesting possibilities in your design journey, such as my result in Figure 12-35.
18.221.53.209