rocinantealpha

reference / time and animation

ease

How far along a movement is when an amount (0 to 1) of its time has passed, on a curve: ease t as out. Smooth unless as says linear, in, out, back, elastic or bounce.

fill goldfor i from 0 to 20 [  x = 20 + i * 18  y = 270 - (ease (i / 20) as smooth) * 240  circle at x y radius 5]
what it draws: the whole window, 400 by 300
What the example of ease draws

How to write it

ease amount [as word]

Gives a number.

Words it takes

after as
smooth, linear, in, out, back, elastic, bounce

Related