|
|
Strokes and fills for shapesStrokes and fills for shapes are paint operations that add colored pixels to a path or to the area defined by a path. A stroke or a fill can consist of a solid color, or it can use a gradient of colors. Strokes can be continuous, or they can consist of a periodic series of dashes and gaps. Each stroke and fill has its own blending mode, which determines how it interacts with other paint operations in the same group. By default, paint operations within a group are performed from the bottom to the top in the Timeline panel stacking order. This means, for example, that a stroke is rendered on top of (in front of) a stroke that appears after it in the Timeline panel. To override this default behavior for a specific fill or stroke, choose Above Previous In Same Group for the Composite property for the fill or stroke in the Timeline panel. Note: When you add a stroke or fill using the Add menu in the Tools
panel or Timeline panel, the paint operation is added below existing
paths and above existing strokes and fills. To place a new stroke
at the end of the group, hold the Alt (Windows) or Option (Mac OS)
key as you click to choose an item from the Add menu.
New shapes are created with fill and stroke properties depicted by the swatch buttons next to the underlined Fill and Stroke text controls in the Tools panel. You can also modify the fill colors, stroke colors, fill type, and stroke type for selected shapes using these controls. The Fill and Stroke controls are only visible in the Tools panel when a shape layer is selected or a drawing tool is active. If multiple shapes are selected, with different fill or stroke properties, then the swatch button next to the Fill or Stroke control contains a question mark. You can still modify the fill and stroke properties using these controls, and the corresponding properties for all selected shapes are set to the same value. Fills and strokes can be any of four types:
You can animate and interpolate gradients by
adding keyframes to the Colors property and using the Color Picker
in Gradient Editor mode to add, modify, and remove color stops and
opacity stops. You can also save gradients as animation presets.
(See Save an animation preset.)The colors of strokes and fills for shape layers are not rendered as high-dynamic range colors. Color values under 0.0 or over 1.0 are clipped to fall within the range of 0.0 to 1.0. Choose stroke or fill type and blending options
Choose a solid color or edit a gradient for a stroke or fill To choose a solid color or
gradient for fills or strokes for new shapes, click the swatch button
next to the underlined Fill or Stroke text control in the Tools panel.
To choose a solid color or gradient for fills or strokes for existing
shapes, select the shapes before using the controls.Modify the color mapping for a gradientA gradient is a range of color and opacity values that you can customize in the Gradient Editor dialog box. You can also customize how those colors are applied to a stroke or fill by modifying the Start Point and End Point, which determine the direction and scale of the gradient. For example, you can modify these points to stretch the colors of a gradient over a larger area, or orient a linear gradient so that colors fade from top to bottom instead of from left to right. For a radial gradient, you define the center of gradient, its radius, and the offset of a highlight. By default, when you create a shape path by drawing with the Pen tool, the control points for the gradient are placed in the center of the layer. You can adjust these points after you finish drawing. You can modify the Start Point, End Point, Highlight Angle, and Highlight Length properties in the Timeline panel. You can also modify these properties directly in the Composition panel. ![]() Controls for mapping gradient colors in Composition panel
Set stroke width To set stroke width for new
shapes in pixels (px), drag the underlined Stroke Width control
(which is located to the right of the Stroke controls in the Tools panel),
or click the control and enter a value in the box. To set the stroke
width for existing shapes, select them before using the Stroke Width
control.Create a dashed strokeYou create a dashed stroke by adding any number of dashes and gaps to the Dashes property group for the stroke. The dashes and gaps in this property group are repeated as many times as necessary to cover the entire path. The Offset property determines at what point on the path the stroke begins. Animate the Offset property to create a moving
trail of dashes, like the lights on a marquee.
Line Cap options for strokesThe Line Cap property for a dashed stroke determines the appearance of the ends of the stroke segments (dashes).
Line Join options for strokesThe Line Join property for a stroke determines the appearance of the stroke where the path suddenly changes direction (turns a corner).
Fill rules for shapesA fill operation works by painting color in the area defined as inside a path. Determining what is considered inside a path is easy when the path is something simple, like a circle. However, when a path intersects itself, or when a compound path consists of paths enclosed by other paths, determining what is considered inside is not as easy. After Effects uses one of two rules to determine what is considered inside a path for the purpose of creating fills. Both rules count the number of times that a straight line drawn from a point crosses the path on its way out of the area surrounded by a path. The nonzero winding fill rule considers path direction; the even-odd fill rule does not. After Effects and Illustrator use the nonzero winding fill rule as the default. ![]() Self-intersecting path with Fill Rule set to Non‑Zero Winding
Fill Rule (left) compared with Even‑Odd Fill Rule (right)
|