Ease
Shapes a lerp's t with a named easing curve.
Node id math/ease
The Ease node takes a t from 0 to 1 and outputs it eased along a curve,
still from 0 to 1. Connected to the t of a Lerp
(or of any object Lerp, such as Lerp Point or Lerp Color), it makes the
blend start slowly, end slowly, or bounce, instead of changing evenly.
Parameters
| Name | Type | Default |
|---|---|---|
| curve | EasingCurve | "cubic" |
| mode | EasingMode | "in-out" |
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| t | number | 0.5 |
Outputs
| Name | Type | Notes |
|---|---|---|
| t | number |
Behaviour
- Parameters.
curve(EasingCurve, defaultcubic) picks the shape, andmode(EasingMode, defaultin-out) which end is eased. Both are set on the node or in the property inspector. - Ends are kept.
t= 0 gives 0 andt= 1 gives 1, for every curve and mode. In between, the result never leaves 0 to 1: there are no curves that overshoot. - Clamped. A
tbelow 0 counts as 0, above 1 as 1 (unlike Lerp, which extrapolates).tdefaults to 0.5. linearoutputstunchanged (clamped).
Example
To space points closer together near both ends of a line: Range (count 8)
into a Map whose function divides element by 7
(Divide), sends it through Ease (cubic, in-out) and into the t of a
Lerp Point between the line's two ends. Connect Map's array of points to a
Make Polyline's points to see the spacing. Changing curve or mode
redraws it at once.
Related nodes
- Ease Bézier: a curve of your own, like
CSS
cubic-bezier(). - Ease Steps: jumps in equal steps.
- Lerp: the blend that
tdrives.