Free, in your browser

Pick an easing

Thirty easings, each drawn and in motion. Pick one, watch it move, and copy it as a Metal function of t.

What an easing is

A function from 0 to 1 that starts at 0 and ends at 1, with its own way between: slow then fast (in), fast then slow (out), or both (in out). Back overshoots, elastic rings, bounce drops and bounces. Feed it a time from 0 to 1 and use the result for a position, a size, a color or anything that moves.

In a shader

Each is one Metal function of float t; the curve drawn here is read from that very code. exp2 is used where other lists write pow(2, …), which costs more on a GPU. To shape your own, the graph plots any expression; the playground link moves a dot along the easing.