22UIDescription 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.");
46#define LED_TYPE WS2812
47#define COLOR_ORDER GRB
50#define NUM_LEDS (WIDTH * HEIGHT)
98 uint16_t
time = millis() / 16;
99 uint8_t hueOffset = millis() / 32;
103 for (uint16_t
x = 0;
x <
WIDTH;
x++) {
108 uint8_t
hue = hueOffset + (
x * 255 /
WIDTH);
112 uint8_t bri = 128 + (wave / 2);
127 float r = original_color.r / 255.f;
128 float g = original_color.g / 255.f;
129 float b = original_color.b / 255.f;
UISlider satSlider("Saturation", 60, 0, 255, 1)
EaseType getEaseType(int value)
UIGroup colorBoostControls("Color Boost", satSlider, saturationFunction, luminanceFunction)
UIDropdown luminanceFunction("Luminance Function", easeOptions)
UIDropdown saturationFunction("Saturation Function", easeOptions)
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.")
UITitle title("ColorBoost")
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
central include file for FastLED, defines the CFastLED class/object
#define FL_ASSERT(x, MSG)
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0)
@ TypicalLEDStrip
Typical values for SMD5050 LEDs.
#define sin8
Platform-independent alias of the fast sin implementation.
fl::u32 time()
Universal millisecond timer - returns milliseconds since system startup.
CRGB colorBoost(fl::EaseType saturation_function=fl::EASE_NONE, fl::EaseType luminance_function=fl::EASE_NONE) const
Representation of an RGB pixel (Red, Green, Blue)
Representation of an HSV pixel (hue, saturation, value (aka brightness)).