DisplayAspect

Family: Core · 2 forms

What it does

DisplayAspect writes a value: it sets rather than reads. It takes aspect (a float), and returns nothing. That is the first of 2 forms.

Syntax

1
DisplayAspect(aspect float)
2
DisplayAspect() → float

Parameters

NameTypeIn forms
aspectfloat1

What each form returns

1DisplayAspect(1.0)nothing
2DisplayAspect()float

Example · generated

Form 1, you choose the id yourself

DisplayAspect(1.0)DO  Sync()LOOP

Form 2, the command hands back the id

DO  Print(DisplayAspect())  Sync()LOOP

DisplayAspect 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