CreatePointLight

Family: 3D · One form

What it does

CreatePointLight brings a 3D object into being: it is how the rest of the program comes to have one. It takes lightID (an integer), x (a float), y (a float), z (a float), radius (a float), red (an integer), green (an integer) and blue (an integer), and returns nothing. lightID is the id you are giving a Light object: every later call names it by that number.

Syntax

CreatePointLight(lightID integer, x float, y float, z float, radius float, red integer, green integer, blue integer)

Parameters

NameType
lightIDinteger
xfloat
yfloat
zfloat
radiusfloat
redinteger
greeninteger
blueinteger

Every form returns

nothing

Example · generated

CreatePointLight(1, 100.0, 120.0, 100.0, 1.0, 255, 128, 128)DO  Sync()LOOP

CreatePointLight 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