new AnimationLoop(cb, autostart)
- Source:
requestAnimationFrame based loop, cb is called as fast as the browser wants, this usually matches the screen refresh rate
Parameters:
Name | Type | Default | Description |
---|---|---|---|
cb |
function | ||
autostart |
Boolean |
true
|
Members
lasttick
- Source:
ms timestamp of the last time
Methods
start()
- Source:
start the loop
stop()
- Source:
stop the loop