Raf

Raf class.

new Raf()
License: https://opensource.org/licenses/MIT
Author: Patrick Heng & Fabien Motte <hengpatrick.pro@gmail.com/contact@fabienmotte.com>
Example
const callback = () => { }
Raf.add(callback)
Instance Members
bind()
unbind()
add(callback, fps, delay, once)
addOnce(callback, fps, delay)
remove(callback)

listenerCallback

Listener callback.

listenerCallback(delta: Number, elapsedTime: Number, now: Number)

Type: Function

Parameters
delta (Number) Delta between two frames in milliseconds.
elapsedTime (Number) Elapsed time in milliseconds since the Raf was binded.
now (Number) Current timestamp in milliseconds.