Class: LoopMode

LoopMode()

The type describing the loop mode of the app.

Constructor

new LoopMode()

Source:

Classes

LoopMode

Methods

(static) FrameRate(framerate) → {LoopMode}

Create a loop mode that uses setTimeout at the specified frame rate. The framerate is specified at frames per second.
Parameters:
Name Type Description
framerate number the framerate the app should run at.
Source:
Returns:
Type
LoopMode

(static) NTimes(nTimes) → {LoopMode}

Create a loop mode that loops a specific number of times and the stops the app.
Parameters:
Name Type Description
nTimes number the number of times that app should loop
Source:
Returns:
Type
LoopMode

(static) Once() → {LoopMode}

Create a loop mode that loops the app once and then stops the app. This is a shorthand for calling NTimes(1).
Source:
Returns:
Type
LoopMode

(static) RefreshSync() → {LoopMode}

Create a loop mode that uses requestAnimationFrame()
Source:
Returns:
Type
LoopMode