Timer callbacks

Execute functions at specific points during a timer playback.
Callbacks Function are specified directly in the createTimer() parameters Object.

createTimer({
  duration: 1000,
  frameRate: true,
  loop: true,
┌─────────────────────┐
│ onBegin: () => {},  │
│ onLoop: () => {},   ├─ Callbacks
│ onUpdate: () => {}, │
└─────────────────────┘
});