Presets and keys
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.