Classes
Members
fps
The frames-per-second the app is running at.
height
The height of the app canvas
height
Set the height of the app canvas
width
The width of the app canvas
width
Set the width of the app canvas
Methods
draw() → {Drawer}
Produce the App's Draw API for drawing geometry.
Returns:
draw API
- Type
- Drawer
iterations() → {number}
The number of times the view function has been called
since the start of the program.
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 |
Returns:
- Type
- App
pen() → {Drawer}
Produce the App's Draw API for drawing geometry
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 |