Documentation
    Preparing search index...

    Conveniently provides a way to have a render loop called at a constant frame rate.

    Index

    Constructors

    Properties

    Accessors

    Methods

    Constructors

    Properties

    canvas: Canvas

    The Canvas we're rendering to.

    The configuration that was used for this render loop.

    renderLoop: RenderLoopCallback

    A function that we call when a new frame should be drawn.

    Accessors

    • get frameCounter(): number

      Retrieves the amount of frames drawn to the DOM throughout the loops lifetime.

      Returns number

      The frame count.

    Methods