Gradient Shapes

Gradient Shapes

Use custom paths for linear, concentric, and conical gradients. Linear and conical gradients use open paths; concentric gradients use closed shapes. Choose a shape preset, style, or reference object, or create a new gradient shape from an object using the Gradient panel menu.

Custom shapes in linear (A, B), concentric (C, D, E), and conical (F) gradients.

The examples above use these shapes:

  • (A) A linear gradient with a curve made of three segments.
  • (B) A linear gradient with a zigzag path made of straight lines.
  • (C) A concentric gradient with a rectangle.
  • (D) A concentric gradient with a rhombus.
  • (E) A concentric gradient with a pentagon.
  • (F) A conical gradient with a path made of two cubic curves.

Selecting the Shape

The upper Shape field in the Gradient panel lists the basic gradient types and saved gradient shape styles and presets, including presets supplied with VectorStyler.

  1. Open Gradient from Window.
  2. Select an object with a gradient, or apply a gradient to the selected object.
  3. Open the upper Shape dropdown and choose a gradient shape.

The shape applies to the object’s fill, stroke, or transparency gradient, according to the panel’s editing mode.

For linear, concentric, and conical gradients, a second Shape field appears in the panel’s middle section. This lists paths suitable for the chosen gradient type. Choose a shape style, preset, or reference to change the gradient’s geometry.

Gradient Shape Tool

Editing a concentric gradient with the Gradient Shape tool.

Use the Gradient Shape Gradient Shape tool tool to edit a linear, concentric, or conical gradient’s path directly. It is grouped with the Gradient Gradient tool tool in the toolbox.

With the tool active, the selected object’s gradient shape appears as an editable path. Edit it as you would with the Node tool. The gradient updates as you change the path.

Creating New Shapes

To create a gradient shape preset or style:

  1. Draw and select an object with a single open path for a linear or conical gradient, or a single closed shape for a concentric gradient.
  2. Choose the matching command from the Gradient panel menu:
    • Create Linear Shape Preset or Create Linear Shape Style.
    • Create Concentric Shape Preset or Create Concentric Shape Style.
    • Create Conical Shape Preset or Create Conical Shape Style.
  3. Set the shape options in the dialog and click OK.

The dialog contains the settings described under the corresponding shape type in Gradient Selector. Its preview shows the new gradient shape. You can change the preview colors, but those colors are not saved with the shape preset or style.

Changes to a shape style update all gradients that use it. When creating a style, enable Link to Object to keep it linked to the source object’s shape. Editing that object then updates the gradients automatically.

Styles are stored with the document. Presets can be stored outside the document, so Link to Object is available for styles only.

Shape References

A named object with a gradient shape role can supply the shape directly, without creating a preset or style. Any change to that object’s shape updates every gradient that references it.

  1. Draw or select a single open path for a linear or conical gradient, or a single closed path for a concentric gradient.
  2. Choose Object - Object Options and give the object a name.
  3. Open Role and choose Linear Gradient Shape, Concentric Gradient Shape, or Conical Gradient Shape.
  4. Click OK. The shape appears under the object’s name in the Gradient panel’s shape list.
  5. Choose this shape for other objects’ gradients.

Edit the source shape with the Node tool or the Shape panel to update all gradients that reference it.

A concentric gradient blending from an inner ellipse to an outer hexagon.

Using Multiple Shapes

Linear, concentric, and conical gradients can blend between several custom shapes. Each shape has a position, called a shape stop. The gradient transitions smoothly between these stops.

  • In a linear gradient, shapes are positioned along the gradient axis.
  • In a concentric gradient, shapes share the gradient center and are scaled to the radius set by their positions.
  • In a conical gradient, shapes are arranged at different angles around the gradient center.

Set up multiple shapes in the Gradient Selector, or when creating or editing a gradient shape preset or style.

Settings for concentric gradient shapes.

  1. Draw an object for each shape you want to use.
  2. Give the objects the Shape role to use them as references, or create shape styles or presets with the Shape panel.
  3. Choose Edit Gradient from the Gradient panel menu.
  4. Click Add shape stop to add a shape stop.
  5. Choose the stop in Stop, set its position in Place, and choose its path in Shape. The meaning of Place depends on the gradient type, as described above.
  6. Repeat for the remaining shapes.

To remove a shape stop, select it in Stop and click Remove shape stop.