Repository navigation
BetterLightStrips 1.2.2
The following changes to the engine have been made:
- Fixed a small bug with
RandomLightTransitionpreventing the.onEnabled()event from being raised in its patterns. - Improved the system for tick calculations of patterns in a transition. This likely will make zero practical difference.
The following light wrappers have been added:
MaskedLightWrapper: A binary light wrapper forLEDPattern.mask(). Multiplies the decimal color values of two patterns together, effectively masking one upon the other.- This implementation of
.mask()has been modified from the previous implementation inLEDPattern. The previous method used a bitwise AND operation between the 8-bit binary values of the two colors. I believe my implementation is better.
- This implementation of
BlinkedLightWrapper: A light wrapper forLEDPattern.blink()andLEDPattern.synchronizedBlink(). Turns a pattern on if a condition is true (or during a timed interval), otherwise show black. Allows customization for easing in or out.
Breaking Changes
From 1.2.1: Removed project files and moved all important source files to the root directory of the repository, to allow cloning the project as a submodule. Unless you were already cloning the project, this does not affect you at all. However, downloading the source is no longer a specific .zip file, simply download the source code attached to this release, or feel free to clone from this project.
From 1.1: Suppliers are used in .withStateAll() and .withTransitionAll()
To install: Download the source code from this release, extract it, and place the net/betterlights directory into your src/java/main/ folder.