Repository navigation
BetterLightStrips 1.0.0
This is the point at which I'd consider the project in a state that I'd consider finalized. The other main thing this project was missing was transitions, so that's what I've implemented.
How to use transitions:
- In your configuration, add a
.withTransitionAll("fromstate", "tostate", new ExampleTransition()). Preferred - Alternatively, you can directly control transitions by using the
TransitionPairtype, like so:.withStateAll(new TransitionPair("fromstate", "tostate"), -1, new ExampleTransition()). Not Recommended
Transitional patterns must always derive from the LightTransition base class. This is enforced at compile-time for the withTransition* methods, but only enforced at runtime for the withState* methods.
Aside from scheduler modifications, the following light transitions have been added:
FadeLightTransition: Fades between the two transitions. Can optionally fade to an intermediate color first.SwipeTransition: A block of color wipes between the two transitions, or optionally no block of color is visible.
To install: Extract betterlights.v1.0.0.zip and place the net/betterlights directory in your src folder.