Class: LightSet

LightSet() → {LightSet}

List structure to facilitate working with multiple Lights

Found in Chapter 9, page 434 of the textbook

Example: 8.3 Multiple Lights

Constructor

new LightSet() → {LightSet}

Source:
Returns:
a new LightSet instance
Type
LightSet

Methods

addToSet(light)

Adds a Light object to the end of this LightSet
Parameters:
Name Type Description
light Light the Light to add
Source:

getLightAt(index) → {Light}

Return the Light at the specified index of this LightSet
Parameters:
Name Type Description
index integer the index in the set to grab
Source:
Returns:
the Light at that index
Type
Light

numLights() → {integer}

Returns the length of this LightSet
Source:
Returns:
length of the set
Type
integer