@reasonink/clock

A clock that runs at a specified speed, can run in reverse and be warped (distorted).

Usage no npm install needed!

<script type="module">
  import reasoninkClock from 'https://cdn.skypack.dev/@reasonink/clock';
</script>

README

ReasonInk Clock

Provides a Clock class that:

  • Tracks time, invoking a callback on each tick
  • Can run backwards or at any speed
  • Can be fastforwarded and rewound
  • Can warp time for specified durations with an easing function
  • When run backwards, warps also run backwards

Welcome to The Matrix.