> For the complete documentation index, see [llms.txt](https://plugin-everything.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://plugin-everything.gitbook.io/docs/controls/width-modes/width-control-modes/curve-graph.md). Agents can also search and read this documentation through its [MCP server](https://plugin-everything.gitbook.io/docs/~gitbook/mcp).

# Curve Graph

`Curve Graph` gives direct Bezier control over the stroke's width profile. Use it when slider-based width modes are not detailed enough.

<div data-with-frame="true"><figure><img src="https://749037855-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftv64kPMoAtApBYU0Un9u%2Fuploads%2FXdT4y4AHoeejzOxbm2Bo%2Fcurve%20graph%20UI.png?alt=media&amp;token=e74bd6c8-2d84-4f54-bb5d-4fd188fa3246" alt=""><figcaption><p><code>Width Mode: Curve Graph</code> with resulting render below</p></figcaption></figure></div>

<div data-with-frame="true"><figure><img src="https://749037855-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Ftv64kPMoAtApBYU0Un9u%2Fuploads%2FOBzxa4FJ4ufQ5qCCIqKM%2Fcurve%20graph%20result.png?alt=media&amp;token=ca9bf579-3c97-4dca-9dbd-f5913fcd7741" alt="" width="320"><figcaption></figcaption></figure></div>

{% hint style="info" %}
The X-axis represents position along the path. The Y-axis represents width multiplier, from zero width at the bottom to full `Stroke Width` at the top.
{% endhint %}

The default graph contains 5 evenly spaced control points at full width (a flat line at the top), producing constant width identical to `Width Control Mode: None (Constant Width)`.

## Controls

<details>

<summary>Graph Areas</summary>

#### Graph Areas

The widget is divided into three areas:

| Area                   | Purpose                   |
| ---------------------- | ------------------------- |
| Main graph area        | Bezier curve canvas       |
| Right tangent buttons  | Per-point editing tools   |
| Bottom utility buttons | Whole-graph editing tools |

</details>

<details>

<summary>Adding Points</summary>

#### Adding Points

Click directly on the curve line to insert a new point at that position. The point insertion cursor appears as a visual guide.

The point is inserted using Bezier subdivision, so the original curve shape is preserved. Up to 128 points are supported.

</details>

<details>

<summary>Selecting Points</summary>

#### Selecting Points

Click a square control point to select it. The selected point is highlighted and drawn above the other points.

The tangent buttons in the right column are disabled until a point is selected.

</details>

<details>

<summary>Moving Points</summary>

#### Moving Points

Drag a square control point to reposition it. Points are constrained to the 0-1 range on both axes and cannot be moved past adjacent points.

The first and last points cannot be moved horizontally - they are locked to X = 0 and X = 1 respectively.

</details>

<details>

<summary>Deleting Points</summary>

#### Deleting Points

Hold `Alt` and click a square control point to delete it. The point subtraction cursor appears as a visual guide.

The first and last points cannot be deleted.

</details>

<details>

<summary>Bezier Handles</summary>

#### Bezier Handles

Each point has two bezier handles (in and out) that control the curve shape entering and leaving the point. Drag a handle to adjust it. Handles are constrained so they cannot extend past adjacent points horizontally.

By default, handles are unified: moving one handle mirrors the other to maintain a smooth curve. Hold `Alt` and click a handle to toggle between unified and split mode. In split mode, each handle moves independently, allowing sharp transitions.

</details>

<details>

<summary>Tangent Buttons</summary>

#### Tangent Buttons

Four buttons appear in a vertical column to the right of the graph. These operate on the currently selected point. All four buttons are dimmed when no point is selected.

| Button           | Result                                                           |
| ---------------- | ---------------------------------------------------------------- |
| `Mirror`         | Toggles the selected point between unified and split handle mode |
| `Toggle Handles` | Turns handles on or off for the selected point                   |
| `Auto`           | Recalculates natural horizontal handles for the selected point   |
| `Delete`         | Deletes the selected point when it is not an endpoint            |

`Mirror` is disabled for the first and last points because they only have one handle each. `Delete` is disabled for the first and last points because endpoints are required.

</details>

<details>

<summary>Utility Buttons</summary>

#### Utility Buttons

Five buttons appear in a horizontal row below the graph. These operate on the entire graph.

| Button    | Result                                                            |
| --------- | ----------------------------------------------------------------- |
| `Add N`   | Prompts for 1-9 new points and inserts them into the largest gaps |
| `Flip X`  | Mirrors the curve horizontally, reversing the width profile       |
| `Flip Y`  | Inverts the curve vertically, swapping high and low width values  |
| `Distr X` | Distributes all points evenly along the X-axis                    |
| `Distr Y` | Distributes all points evenly along the Y-axis                    |

{% hint style="info" %}
When the graph has keyframes, utility and tangent button operations are applied to every keyframe, not just the current time. `Add N` shows an error if keyframes exist - remove graph keyframes before using it.
{% endhint %}

</details>

<details>

<summary>Point Location and Point Value</summary>

#### Point Location and Point Value

When an interior control point is selected in the `Thiccness Graph`, `Point Location` displays and controls the point's X position from 0% to 100%. It is disabled for the first and last points because their X positions are fixed at 0% and 100%.

When any control point is selected, `Point Value` displays and controls its width multiplier from 0% to 100%. It remains available for the first and last points.

Use these controls for precise numeric placement and width values.

</details>

## Interface Conditionals

<details>

<summary>Point Selection</summary>

| Condition                     | Result                                                                            |
| ----------------------------- | --------------------------------------------------------------------------------- |
| No graph point is selected    | Tangent buttons, `Point Location`, and `Point Value` are disabled                 |
| An interior point is selected | Tangent buttons, `Point Location`, and `Point Value` become available             |
| An endpoint is selected       | `Point Value` is available; `Mirror`, `Delete`, and `Point Location` are disabled |

</details>

<details>

<summary>Keyframes</summary>

| Condition              | Result                                            |
| ---------------------- | ------------------------------------------------- |
| Graph has no keyframes | `Add N` can insert new graph points               |
| Graph has keyframes    | `Add N` shows an error                            |
| Graph has keyframes    | Utility and tangent edits apply to every keyframe |

</details>
