Skip to content

BetterLightStrips 1.2.2

Choose a tag to compare

@That-One-Nerd That-One-Nerd released this 03 Nov 22:26
· 10 commits to main since this release
1c474b1

The following changes to the engine have been made:

  • Fixed a small bug with RandomLightTransition preventing 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 for LEDPattern.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 in LEDPattern. The previous method used a bitwise AND operation between the 8-bit binary values of the two colors. I believe my implementation is better.
  • BlinkedLightWrapper: A light wrapper for LEDPattern.blink() and LEDPattern.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.