---
title: Vectors
description: Drawing with the pen and pencil, vector edit mode, node types and handles, region fills, edge strokes and boolean operations in Brilliant.
section: editor
order: 8
featured: false
related: editor/tools, editor/strokes-and-effects, workspace/import-and-export
---

# Vectors

Every shape in Brilliant is an editable vector path. Draw one with the pen or pencil, or press <KeybindingDisplay keyCode="Enter" size="small" /> on any shape to edit its nodes.

## How do I draw a path?

Press <KeybindingDisplay keyCode="P" size="small" /> for the pen and <KeybindingDisplay keyCode="P" modifiers={["shift"]} size="small" /> for the pencil. Hold <KeybindingDisplay keyCode="Shift" size="small" /> to constrain angles.

| Tool | How it draws | How to finish |
|---|---|---|
| Pen | Click to drop a node, click and drag to pull out curve handles. | Click the first node to close the path, or press <KeybindingDisplay keyCode="Esc" size="small" />. |
| Pencil | Draw freehand, and Brilliant smooths it into a vector. | Release. |

## How do I edit the nodes of a shape?

Select it and press <KeybindingDisplay keyCode="Enter" size="small" />, or double-click it. Any shape works; text needs outlining first. The first <KeybindingDisplay keyCode="Esc" size="small" /> clears selected nodes, the next one leaves vector edit mode and returns to Move.

## What do the node types do?

A node's type decides how its two handles relate. Drag a node to move it, and drag a handle to reshape the curve.

<DocFigure src="/docs/images/diagrams/vector-node-types.webp" srcMobile="/docs/images/diagrams/vector-node-types-390.webp" stage="panel" alt="The same path through each node type: straight, mirrored, asymmetric and disconnected" caption="The same path through each node type: straight, mirrored, asymmetric and disconnected" />

| Type | Handles | Gives you |
|---|---|---|
| Straight | None | A sharp corner |
| Mirrored | Mirror each other in direction and length | A smooth, symmetric curve |
| Asymmetric | In line, lengths can differ | A smooth, lopsided curve |
| Disconnected | Move independently | A curved change of direction |

Hold <KeybindingDisplay keyCode="Option" size="small" /> while dragging a handle to move just that one.

<DocsLiveEmbed kind="controls" scene="vectors" lead="Try it: flip between the curved types and watch the curve reshape." />

## How do I add and remove nodes?

Hover an edge until a plus appears and click to insert a node; the curve keeps its shape. Select a node and press <KeybindingDisplay keyCode="Delete" size="small" /> to remove it, and its neighbors reconnect. With fewer than two nodes left, the whole element goes.

## Can parts of a path have their own color?

Yes. Any enclosed region can take its own fill, and every edge its own stroke. Click a region or an edge rather than a node, then set its color in the right panel. A closed path can carry both, while an open path shows only its stroke.

## How do I combine paths?

Select two or more elements and use a boolean. The elements stay editable inside it; press <KeybindingDisplay keyCode="Enter" modifiers={["cmd"]} size="small" /> to flatten the result into one path.

<DocFigure src="/docs/images/diagrams/boolean-ops.webp" srcMobile="/docs/images/diagrams/boolean-ops-390.webp" stage="panel" alt="A circle and a rounded square, then Union, Subtract, Intersect and Exclude" caption="A circle and a rounded square, then Union, Subtract, Intersect and Exclude" />

| Boolean | Keys | Keeps |
|---|---|---|
| Union | <KeybindingDisplay keyCode="U" modifiers={["option", "shift"]} size="small" /> | Everything, merged |
| Subtract | <KeybindingDisplay keyCode="S" modifiers={["option", "shift"]} size="small" /> | The bottom shape, minus the top ones |
| Intersect | <KeybindingDisplay keyCode="I" modifiers={["option", "shift"]} size="small" /> | Only the overlap |
| Exclude | <KeybindingDisplay keyCode="E" modifiers={["option", "shift"]} size="small" /> | Everything except the overlap |

## Where next?

- Paint regions and strokes: [Color and fills](/docs/editor/color-and-fills).
- Stroke caps and dashes: [Strokes and effects](/docs/editor/strokes-and-effects).
- Turn type into paths: [Text](/docs/editor/text).
- The drawing keys: [Tools](/docs/editor/tools).
