 |
 |
 |
 |
Name |
|
light() |
 |
|
|
Examples |
|
|
Description |
|
Add a new light source. Each light has a location, color, and type as specified by the parameters passed into the function. |
 |
|
|
Syntax |
|
light(x, y, z, v1, v2, v3, type)
|
 |
|
|
Parameters |
|
x |
|
int or float: x-position of light source
|
y |
|
int or float: y-position of light source
|
z |
|
int or float: z-position of light source
|
v1 |
|
int or float: red (or hue) value for the light's color
|
v2 |
|
int or float: green (or saturation) value for the light's color
|
v3 |
|
int for float: blue (or brightness) value for the light's color
|
type |
|
Either AMBIENT, DIFFUSE, or SPECULAR
|
|
 |
|
|
Returns |
|
none |
 |
|
|
Usage |
|
Web & Application |
 |
|
|
Related |
|
lights() noLight() |
|