space_ex v0.8.0 SpaceEx.SpaceCenter.Light
A light.
Obtained by calling SpaceEx.SpaceCenter.Part.light/1.
Link to this section Summary
Functions
Whether the light is switched on
The color of the light, as an RGB triple
The part object for this light
The current power usage, in units of charge per second
Whether the light is switched on
The color of the light, as an RGB triple
Link to this section Functions
Link to this function
active(this)
Whether the light is switched on.
Returns: true or false
Link to this function
color(this)
The color of the light, as an RGB triple.
Returns: {float, float, float}, where float is a low-precision decimal
Link to this function
part(this)
The part object for this light.
Returns: a reference to a SpaceEx.SpaceCenter.Part object
Link to this function
power_usage(this)
The current power usage, in units of charge per second.
Returns: a low-precision decimal
Link to this function
set_active(this, value)
Whether the light is switched on.
Returns: :ok
Link to this function
set_color(this, value)
The color of the light, as an RGB triple.
Returns: :ok