BlinkLight
class BlinkLight
Component used to create a light with a flashing effect.
public class BlinkLight extends Component
— Constructors (1) —
Constructor | Description |
---|---|
BlinkLight() | Creates a new instance of BlinkLight. |
— Methods (13) —
Name | Description |
---|---|
String getPattern() | Returns a String with the light emission pattern. |
void setPattern(String pattern) | Sets the light emission pattern. |
void setPattern([OHString] pattern) | Sets the light emission pattern. |
float getFrequency() | Returns the current frequency of light emission. |
void setFrequency(float frequency) | Sets the current frequency of light emission. |
float getOffIntensity() | Returns the current light intensity from when it is off. |
void setOffIntensity(float value) | Sets the current light intensity when it is off. |
float getOnIntensity() | Returns the current light intensity from when it is activated. |
void setOnIntensity(float value) | Sets the current intensity of the light when it is activated. |
float getLerpSpeed() | Returns the current smoothing speed of the light transition. |
void setLerpSpeed(float value) | Sets the current smoothing speed of the light transition. |
boolean isReverse() | Returns true if the light emission is with the "setReverse" option checked, returns false if not. |
void setReverse(boolean value) | Sets whether the "setReverse" option will be checked or not. |