API

Function QueueNewFrame

  • Queue a new function into the requested animation frame pool (ie. this function will be executed by the browser (or the javascript engine) for the next frame)

    Parameters

    • func: () => void

      the function to be called

    • Optionalrequester: any

      the object that will request the next frame. Falls back to window.

    Returns number

    frame number