> For the complete documentation index, see [llms.txt](https://docs.sevenpens.com/drawtab/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sevenpens.com/drawtab/core/pressure/pen-pressure-curves/pressure-curve-constrain-output.md).

# Constraining pressure curve output

## Overview

Typically, a pressure curve function takes input logical pressure values in the range of \[0,1] and maps it to values in an output range of \[0,1]. This means that the full output range is used.

Some curves can limit their output range to achieve better control over brush strokes.

## Visual interpretation

The easy way to tell that a pressure curve constrains the output range is to notice that the curve shape does not reach the bottom or the top of the pressure curve graph. Two examples are below.

<figure><img src="/files/o2i2uJ0RzzDyeBgwFwkq" alt="" width="375"><figcaption></figcaption></figure>

<figure><img src="/files/1cCtMpHri14NTZSXoOoO" alt="" width="375"><figcaption></figcaption></figure>

Even though the shapes look a little different, they both effectively take the input logical pressure values between \[0,1] and map them to an output region close to \[0.3, 0.6].

<figure><img src="/files/naLpeC6XH3Q17dLYZX6C" alt=""><figcaption></figcaption></figure>

## Impact on brush strokes

Imagine the user's brush setting is 100px and the brush is set to change its size in response to pressure. Then suppose the user draws a stroke that goes from the IAF value to the MAX physical pressure.

The stroke size is computed like this:

```
pressure = apply_curve( pressure )
brush_size = max( 1, 100 * pressure )
```

* With a null pressure curve, the stroke width will go from a size of 1 px to 100 px.
* With the curves shown above, the stroke width will go from 30 px to 60 px. So the width of the stroke does not vary as much.

<figure><img src="/files/DYcvn3g0gT29849sHvIP" alt=""><figcaption></figcaption></figure>

## Use cases

* Helps give you more consistent brush strokes while still allowing some variability
* By avoiding the lower end of output logical pressure, you can have your strokes start off a little thicker than normal. (Though some apps have other ways of accomplishing this goal.)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.sevenpens.com/drawtab/core/pressure/pen-pressure-curves/pressure-curve-constrain-output.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
