Skip to content

compas_threejs.lights.pointlight.PointLight ¤

PointLight(
    point: Point = Point(0, 0, 0),
    color: Color = white(),
    intensity: float = 100,
    distance: float = 0,
    decay: float = 2,
    helper: bool = False,
    **kwargs,
)

Constructs a new PointLight instance.

Parameters:

  • color (int | Color | str, default: white() ) –

    The color of the light. Can be specified as an integer, a Color object, or a string. Default is 0xffffff (white).

  • intensity (float, default: 100 ) –

    The intensity or strength of the light, measured in candela (cd). Default is 1.

  • distance (float, default: 0 ) –

    The maximum range of the light. A value of 0 indicates no limit. Default is 0.

  • decay (float, default: 2 ) –

    The rate at which the light diminishes over distance. Default is 2.