SunDirection

Family: 3D · One form

What it does

SunDirection writes to a 3D object: it sets rather than reads. It takes x (a float), y (a float) and z (a float), and returns nothing.

Syntax

SunDirection(x float, y float, z float)

Parameters

NameType
xfloat
yfloat
zfloat

Every form returns

nothing

Example · generated

SunDirection(100.0, 120.0, 100.0)DO  Sync()LOOP

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

286 commands in 3D