PiDraw API
    Preparing search index...

    Variable EASINGSConst

    EASINGS: { inOut: (t: number) => number; linear: (t: number) => number } = ...

    How an animation speeds up: each easing turns the progress of the animation, from 0 to 1 in time, into the progress of the movement, from 0 to 1 in distance. To add one, add a line: its name is the one the option easing accepts, and the type, the checks and the messages follow.

    Type Declaration

    • ReadonlyinOut: (t: number) => number

      Slowly at the start and at the end (a cubic curve).

    • Readonlylinear: (t: number) => number

      At a constant speed.