Constructs a new RenderLoop.
The function to call when a new frame should be drawn.
The canvas we're rendering to.
The configuration for thie RenderLoop.
Readonly
canvasThe Canvas
we're rendering to.
Readonly
optionsThe configuration that was used for this render loop.
Readonly
renderA function that we call when a new frame should be drawn.
Conveniently provides a way to have a render loop called at a constant frame rate.