What it does
ViewZoom writes a value: it sets rather than reads. It takes zoom (a float), and returns nothing. That is the first of 2 forms.
Syntax
1
ViewZoom(zoom float)2
ViewZoom() → floatParameters
| Name | Type | In forms |
|---|---|---|
| zoom | float | 1 |
What each form returns
| 1 | ViewZoom(1.0) | nothing |
| 2 | ViewZoom() | float |
Example · generated
Form 1, you choose the id yourself
ViewZoom(1.0)DO Sync()LOOPForm 2, the command hands back the id
DO Print(ViewZoom()) Sync()LOOPViewZoom is called with values of the types its signature asks for. 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.