Vizard 7 » Command Index » Vizard objects » node3d » <node3d:light>.spread
7.6

<node3d:light>.spread

Set the spread angle of the light

<node3d:light>.spread(  
angle  
)  
angle
0-90,180

Remarks

Sets the angle at which light shines relative to the direction the light is pointing. The default is 180.

Return Value

None

Example

mylight = viz.addLight()
mylight.spread(45)
mylight.spotexponent(2)
mylight.direction(0,0,1)

See also

<node3d:light>.direction
<node3d:light>.spotexponent