What it does
StartCanvasRecordingAsync makes something happen at once: it starts. It takes no arguments, and answers an integer. That is the first of 2 forms.
Syntax
1
StartCanvasRecordingAsync() → integer2
StartCanvasRecordingAsync(fps integer, mime string, bitrate integer) → integerParameters
| Name | Type | In forms |
|---|---|---|
| fps | integer | 2 |
| mime | string | 2 |
| bitrate | integer | 2 |
Every form returns
integer
Example · generated
Form 1, the short one
DO Print(StartCanvasRecordingAsync()) Sync()LOOPForm 2, with every argument
DO Print(StartCanvasRecordingAsync(1, "value", 1)) Sync()LOOPStartCanvasRecordingAsync is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.