public class ChangeBrightnessEvent extends LightEvent
| Constructor and Description |
|---|
ChangeBrightnessEvent(Lights lights,
float brightness)
This constructor creates a new ChangeBrightnessEvent referencing to a
group of light that was switched to a new brightness level.
|
| Modifier and Type | Method and Description |
|---|---|
float |
getBrightness()
This function returns the new new brightness level (between 0 and 1) for
the group of lights.
|
public ChangeBrightnessEvent(Lights lights, float brightness)
lights - is the group of lights that was switched to white modebrightness - is the new new brightness level (0 and 1)java.lang.IllegalArgumentException - if the new brightness level is not between 0 and 1