A minimal requestAnimationFrame render loop for node and the browser, using high-performance timing where possible.
var loop =var engine =start
engine = loop([fn])
Creates a new loop with an optional function to receive tick events. The function will be called with delta time as the first parameter, in milliseconds.
Starts the render loop and returns this engine, for chaining.
Stops the render loop and cancels the currently requested animation frame.
Attaches another function to the render loop.
MIT, see LICENSE.md for details.