Repository navigation
BetterLightStrips 1.2.1
The following changes to LightPattern have been made:
gammahas been added as a protected field, since quite a lot of patterns use it. As such,colorLerp(a, b, t, gamma)has been removed, since gamma is autofilled with the protected field.- The functionality of
colorLerp()has moved toColorHelper.lerp(). The declaration will continue to exist inLightPattern.
The following changes to Gradient have been made:
- Quality of life stuff:
Gradient.rainbow()now exists, andGradient.linear(Color...)can be used to easily create a basic gradient.
The following light wrappers have been added:
UnaryLightWrapper: A wrapper that can be used to modify the colors of a pattern.BinaryLightWrapper: A wrapper that can be used to modify the colors of two patterns to create one.BlendedLightWrapper: A wrapper forLEDPattern.blend(). Blends between two patterns.BrightnessLightWrapper: A wrapper forLEDPattern.atBrightness(). Changes the brightness of the input pattern.- Separated specific wrappers like
BlendedLightWrapperfrom the generalized ones likeUnaryLightWrapper. If you were properly using the methods, this should not be a breaking change.
Breaking Changes
From 1.1: Suppliers are used in .withStateAll() and .withTransitionAll()
To install: Extract betterlights.v1.2.1.zip and place the net/betterlights directory in your src folder.