Function drive

    • Park each frame until cb returns false. t is elapsed since the first call (sampled from tick.elapsed — no float accumulation).

      Parameters

      • cb: (tick: Tick, t: number) => boolean | void

      Returns Animator<void>