# Presets and keys

> Aego 0.12.5 · development; docs build `4a32b816933e02930662f6a443cb25abe6050d090c55e237cbff5c44ae9b25f8`. [Build manifest](/docs-build.json).

A curve is either a preset or a list of keys. A preset is quick to pick; keys give any shape.

## Presets

A preset is an easing on time `0..1`: `linear` and the `in`/`out`/`inOut` family of quad, cubic, sine, expo, back, elastic and bounce.

## Keys

Each key has a time, a value, two slopes, a segment mode and a tangent mode.

| Segment | From this key to the next |
|---|---|
| Bezier | smooth, shaped by the slopes |
| Linear | a straight line |
| Step | holds this key's value |

| Tangent | Slopes |
|---|---|
| Auto | follow the neighbours and never overshoot them |
| Linear | point at the neighbouring keys |
| Free | set by hand; In and Out may differ |

**Before** and **After** decide what happens outside the keys: `Clamp` holds the end value, `Loop` repeats, `Ping-pong` repeats mirrored. Curves are float32 and evaluate identically on every platform.
