2010 October 12 / j|d|a|v|i|s|@|c|a|r|l|e|t|o|n|.|e|d|u

Light

Inherits from Camera. A point light source positioned somewhere in the scene, that casts light (of some specified RGB color) in all directions. The orientation of the light in space therefore has no visual effect. This class does not support shadow-casting. The orthogonality of the underlying camera has no effect on the light.

__init__(self, world=None, isOrthogonal=False)

Initializes the light. The isOrthogonal argument is passed along to Camera.__init__; it indicates that point lights are not orthogonal.

setColor(self, rgb)

Sets the RGB color of the light to the given tuple. The default is (1.0, 1.0, 1.0).

getColor(self)

Returns the RGB color as a 3-tuple.

getCastsShadows(self)

Returns False; shadowing of omnidirectional point lights is not supported.