ViewZoom

Family: Core · 2 forms

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() → float

Parameters

NameTypeIn forms
zoomfloat1

What each form returns

1ViewZoom(1.0)nothing
2ViewZoom()float

Example · generated

Form 1, you choose the id yourself

ViewZoom(1.0)DO  Sync()LOOP

Form 2, the command hands back the id

DO  Print(ViewZoom())  Sync()LOOP

ViewZoom 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.

200 commands in Core