SpotLight

class pythreejs.SpotLight(color='#ffffff', intensity=1, distance=0, angle=1.0471975511965976, penumbra=0, decay=1)[source]

SpotLight

Autogenerated by generate-wrappers.js See https://threejs.org/docs/#api/lights/SpotLight

Inherits Light.

Three.js docs: https://threejs.org/docs/#api/lights/SpotLight

target
Union([
    Instance(Uninitialized),
    Instance(Object3D),
    ], default_value=UninitializedSentinel, allow_none=False).tag(sync=True, **unitialized_serialization)
distance
IEEEFloat(0, allow_none=False).tag(sync=True)
angle
IEEEFloat(1.0471975511965976, allow_none=False).tag(sync=True)
penumbra
IEEEFloat(0, allow_none=False).tag(sync=True)
decay
IEEEFloat(1, allow_none=False).tag(sync=True)
shadow
Union([
    Instance(Uninitialized),
    Instance(LightShadow),
    ], default_value=UninitializedSentinel, allow_none=False).tag(sync=True, **unitialized_serialization)
type
Unicode("SpotLight", allow_none=False).tag(sync=True)
angle = IEEEFloat(1.0471975511965976)

a float

decay = IEEEFloat(1)

a float

distance = IEEEFloat(0)

a float

penumbra = IEEEFloat(0)

a float

shadow = Union(<pythreejs.traits.Uninitialized object at 0x7f7d045c0d30>)

an Uninitialized or a LightShadow

target = Union(<pythreejs.traits.Uninitialized object at 0x7f7d045c0d30>)

an Uninitialized or an Object3D

type = Unicode('SpotLight')

a unicode string