Class: App

App()

An amelia app instance usually created using the app function.

Constructor

new App()

Source:

Classes

App

Members

fps

The frames-per-second the app is running at.
Source:

height

The height of the app canvas
Source:

height

Set the height of the app canvas
Source:

width

The width of the app canvas
Source:

width

Set the width of the app canvas
Source:

Methods

draw() → {Drawer}

Produce the App's Draw API for drawing geometry.
Source:
Returns:
draw API
Type
Drawer

iterations() → {number}

The number of times the view function has been called since the start of the program.
Source:
Returns:
number of frames
Type
number

loopmode(mode) → {App}

Specify the loop mode that the app should use. This is used from the next frame on.
Parameters:
Name Type Description
mode LoopMode the loop mode to use
Source:
Returns:
Type
App

pen() → {Drawer}

Produce the App's Draw API for drawing geometry
Source:
Returns:
Type
Drawer

size(size)

Set the size of the app canvas using the Size type.
Parameters:
Name Type Description
size Size the size that the canvas should be set to
Source: