Skip to main content
Fills and strokes are the paint on a shape. A fill colors the area inside the shape’s paths, and a stroke draws a line along them. A shape can have any number of fills and strokes, and each one applies to every path in the shape. Fills and strokes are listed in the Fills and Strokes section of the Inspector. On a Layout, the same section is called Background, or Foreground for a Layout’s foreground.

Adding a fill or stroke

1
Select a shape.
2
In the Fills and Strokes section of the Inspector, click + and select Fill or Stroke.Adding a fill with the + button in the Fills and Strokes section
A fill’s swatch is a filled square, and a stroke’s swatch is an outlined square. A new fill on a shape starts as a gradient, and a new stroke starts as a solid color. Adding a stroke, shown with an outlined swatch in the Fills and Strokes section To change a fill or stroke’s color or switch it to a gradient, click its swatch. See Color and Gradients.

Managing fills and strokes

  • Reorder: Drag a fill or stroke by an empty area of its row. Items higher in the list draw in front of items lower in the list.
  • Hide: Click the eye icon. The fill or stroke stays on the shape, but doesn’t draw.
  • Delete: Click the minus icon.
  • Duplicate, copy, or convert: Right-click a fill or stroke to duplicate or copy it, or to convert a fill to a stroke and a stroke to a fill.
Reordering fills by dragging them in the Fills and Strokes section Hiding a fill with the eye icon and deleting it with the minus icon

Fill options

Click the options button on a fill to open its options. Fill Options showing Name, Blend, Fill Rule, and Feather The Effects tab adds path effects, such as a trim or dash, to the fill. See Path effects.

Fill rules

When a shape has more than one path, or a path crosses itself, the fill rule decides which areas are inside the shape and get filled. To cut a hole in a shape, put the hole’s path inside the shape’s outer path and choose a fill rule that leaves the overlap empty.
  • Non-zero is the default. Each path counts +1 if it’s drawn clockwise and −1 if it’s drawn counter-clockwise. Areas where the total isn’t zero are filled. Two overlapping paths drawn in the same direction fill the overlap, and two drawn in opposite directions leave it empty.
  • Even-odd ignores direction and counts how many paths surround an area. Areas inside an odd number of paths are filled, and areas inside an even number are empty. A path inside another path always makes a hole.
  • Clockwise is a fill rule made by Rive. Paths drawn clockwise fill, and paths drawn counter-clockwise cut away from them, so you can subtract one path from another by reversing its direction. Feathered fills always use Clockwise.
To change a path’s direction, use Reverse Direction while editing its vertices.

Stroke options

Set a stroke’s thickness in the field on its row. Click the options button on a stroke to open the rest of its options.
  • Name: The stroke’s name.
  • Blend: The stroke’s blend mode.
  • Cap: How the ends of an open path look.
    • Butt ends the stroke flat at the end point. A path with no length doesn’t draw.
    • Round adds a rounded end. A path with no length draws a circle.
    • Square adds a square end that extends past the end point. A path with no length draws a square.
  • Join: How corners look: Round, Bevel, or Miter.
  • Apply transform: When it’s on, scaling the shape also scales the stroke’s thickness. Turn it off to keep the thickness the same at any scale.
  • Feather: Softens the stroke’s edge. See Vector Feathering.
The Effects tab adds path effects to the stroke. See Path effects.

Blend modes

Each fill and stroke has its own blend mode. By default it’s set to inherit the shape’s blend mode.

Path effects

Path effects change the path a fill or stroke draws, without changing the shape itself. Add them from the Effects tab of a fill or stroke’s options:
  • Trim Effect draws only part of the path, so you can animate a line drawing on. See Trim and Dash.
  • Dash Effect breaks the path into dashes and gaps. See Trim and Dash.
  • Effect Group applies a shared stack of effects that you control in one place. See Effect Groups.
  • Scripted path effects apply a path effect script.

Vector Feathering

To soften the edge of a fill or stroke, for glows, drop shadows, and inner shadows, use Vector Feathering.

Effect Groups

To share the same trim, dash, or scripted effects across many fills and strokes, and control them from one place, use an Effect Group.