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.
ReadonlycanvasThe Canvas we're rendering to.
ReadonlyoptionsThe configuration that was used for this render loop.
ReadonlyrenderA 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.