meo-canvas
    Preparing search index...

    Function steps

    • Quantises progress into count equal jumps, as CSS steps(count, end) does.

      Floors rather than rounds, which is what holds each step for its full width: a value a hair below a boundary belongs to the step it is still inside. The vectors sample one part in a billion either side of every boundary for exactly this — floor and round agree everywhere else.

      The final instant is pinned to 1 so an animation lands on its end value rather than a step short of it.

      Parameters

      • count: number

      Returns (t: number) => number