Creates new light object and adds it to the 3D scene.

You can set additional properties of the light source through properties of the returned light object. The default position of the light source is (0,0,0) You can use the base property to alter the position.

Syntax:

light addLight(String name, String type)
Return: a new light object.
Parameters:
name

The name of the new light object

type

The type of the new light object. The following values are accepted;

sun This will create a sun-type illumination source
spot This will produce a directional spot light type of illumination source
point This will create a bulb type illumination source.


See also:

Class arcticLayer | Class light |

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.