setIntensity

open fun setIntensity(watts: Float, efficiency: Float)

Dynamically updates the light's intensity. The intensity can be negative.

Lightbulb type | Efficiency -----------------+------------ Incandescent | 2.2% Halogen | 7.0% LED | 8.7% Fluorescent | 10.7%

This call is equivalent to:

Builder.intensity(efficiency * 683 * watts);

Parameters

watts

Energy consumed by a lightbulb. It is related to the energy produced and ultimately the brightness by the efficiency parameter. This value is often available on the packaging of commercial lightbulbs.

efficiency

Efficiency in percent. This depends on the type of lightbulb used.