foldkit-viz - v0.15.0
    Preparing search index...

    Type Alias EaseFn

    EaseFn: (t: number) => number

    TEA-compatible tween primitive.

    A Tween tracks animation progress (0→1) over a given duration. Drive it by dispatching a Tick({ deltaTime }) message on each animation frame and calling tweenStep in the update function.

    Wire the tick via foldkit's Subscription.animationFrameEntry:

    Subscription.animationFrameEntry({
    isActive: (model) => !allTweensDone(model.tweens),
    toMessage: (dt) => Ticked({ dt }),
    })

    Type Declaration

      • (t: number): number
      • Parameters

        • t: number

        Returns number