LightDsl
The DSL for creating and configuring lights in the simulation.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
LightDsl.type
Members list
Extensions
Extensions
Sets the position of the light.
Sets the position of the light.
Value parameters
- pos
-
the position of the light.
Attributes
- Returns
-
The updated light with the specified position.
Provides an extension method for the Light class to allow for a more fluent DSL.
Provides an extension method for the Light class to allow for a more fluent DSL.
Attributes
Sets the attenuation of the light
Sets the attenuation of the light
Value parameters
- attenuation
-
the attenuation factor of the light.
Attributes
- Returns
-
The updated light with the specified attenuation.
Sets the unique identifier for the light.
Sets the unique identifier for the light.
Value parameters
- id
-
the unique identifier for the light.
Attributes
- Returns
-
the updated light with the specified identifier.
Sets the illumination radius of the light, which defines how far the light can illuminate. This is different from the radius of the light bulb, as it defines the effective range of the light's illumination.
Sets the illumination radius of the light, which defines how far the light can illuminate. This is different from the radius of the light bulb, as it defines the effective range of the light's illumination.
Value parameters
- radius
-
the illumination radius of the light.
Attributes
- Returns
-
The updated light with the specified illumination radius.
Sets the intensity of the light
Sets the intensity of the light
Value parameters
- intensity
-
the intensity of the light.
Attributes
- Returns
-
The updated light with the specified intensity.
Sets the orientation of the light.
Sets the orientation of the light.
Value parameters
- orientation
-
the orientation of the light.
Attributes
- Returns
-
The updated light with the specified orientation.
Sets the radius of the light, which defines the dimension of the light bulb.
Sets the radius of the light, which defines the dimension of the light bulb.
Value parameters
- radius
-
the radius of the light bulb.
Attributes
- Returns
-
The updated light with the specified radius.