Class LightSource
Defined in: SweetHome3D.js.
Constructor Attributes | Constructor Name and Description |
---|---|
LightSource(x, y, z, color, diameter)
Creates a new light source.
|
Method Attributes | Method Name and Description |
---|---|
getColor()
Returns the RGB color code of this source.
|
|
Returns the diameter of this source or
null if it's not defined. |
|
getX()
Returns the abscissa of this source.
|
|
getY()
Returns the ordinate of this source.
|
|
getZ()
Returns the elevation of this source.
|
Class Detail
LightSource(x, y, z, color, diameter)
Creates a new light source.
Author: Emmanuel Puybaret.
Author: Emmanuel Puybaret.
- Parameters:
- {number} x
- {number} y
- {number} z
- {number} color
- {number} diameter
Method Detail
{number}
getColor()
Returns the RGB color code of this source.
- Returns:
- {number}
{number}
getDiameter()
Returns the diameter of this source or
null
if it's not defined.
- Returns:
- {number}
{number}
getX()
Returns the abscissa of this source.
- Returns:
- {number}
{number}
getY()
Returns the ordinate of this source.
- Returns:
- {number}
{number}
getZ()
Returns the elevation of this source.
- Returns:
- {number}