FrameListener#
Type alias FrameListener
Frame Listener: ((time: number, elapsed: number) => void)
Type declaration
-
- (time: number, elapsed: number): void
-
Parameters
-
time: number
Total time in milliseconds since the start of the internal update loop.
-
elapsed: number
Elapsed time since the last run of the internal update loop.
Returns void
-
Callback function which can be registered via the FrameAPI.