20fl::UIDescription description(
"CRGB::colorBoost() is a function that boosts the saturation of a color without decimating the color from 8 bit -> gamma -> 8 bit (leaving only 8 colors for each component). Use the dropdown menus to select different easing functions for saturation and luminance. Use legacy gfx mode (?gfx=0) for best results.");
44#define LED_TYPE WS2812
45#define COLOR_ORDER GRB
48#define NUM_LEDS (WIDTH * HEIGHT)
101 for (uint16_t
x = 0;
x <
WIDTH;
x++) {
103 uint8_t wave = sin8(time + (
x * 8));
106 uint8_t
hue = hueOffset + (
x * 255 /
WIDTH);
110 uint8_t bri = 128 + (wave / 2);
125 float r = original_color.r / 255.f;
126 float g = original_color.g / 255.f;
127 float b = original_color.b / 255.f;
fl::UIDescription description("Demo of the Animatrix effects. @author of fx is StefanPetrick")
fl::UITitle title("Animartrix")
fl::UIDropdown saturationFunction("Saturation Function", easeOptions)
fl::EaseType getEaseType(int value)
fl::UISlider satSlider("Saturation", 60, 0, 255, 1)
fl::UIGroup colorBoostControls("Color Boost", satSlider, saturationFunction, luminanceFunction)
fl::UIDropdown luminanceFunction("Luminance Function", easeOptions)
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
#define FL_ASSERT(x, MSG)
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0) FL_NOEXCEPT
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
fl::u32 millis()
Universal millisecond timer - returns milliseconds since system startup.
enable_if< is_fixed_point< T >::value, T >::type pow(T base, T exp) FL_NOEXCEPT
CRGB colorBoost(EaseType saturation_function=EaseType::EASE_NONE, EaseType luminance_function=EaseType::EASE_NONE) const FL_NOEXCEPT
Representation of an 8-bit RGB pixel (Red, Green, Blue)