302 {
303
306
307
308
309
310
311
312
313
314
315
317
318
321
322
323
324
325
326
327
329
330
331
332
333
334
335
337
338
339 XYMap xyRect(width, height,
false);
341 waveArgs.
factor = SuperSample::SUPER_SAMPLE_2X;
344 waveArgs.
speed = 0.16f;
348
349
351
352
355
356
361
362
364 FL_WARN(
" This group contains noise pattern controls:");
365 FL_WARN(
" - Use Noise Pattern toggle");
366 FL_WARN(
" - Noise Scale and Speed sliders");
367 FL_WARN(
" - Color Palette selection for noise");
368 FL_WARN(
" UIGroup automatically applied group membership via variadic constructor");
369
370
373
374
376 string selectedPalette = dropdown.
value();
377 FL_WARN(
"Noise palette changed to: " << selectedPalette);
378 if (selectedPalette == "Party") {
380 } else if (selectedPalette == "Heat") {
382 } else if (selectedPalette == "Ocean") {
384 } else if (selectedPalette == "Forest") {
386 } else if (selectedPalette == "Rainbow") {
388 }
389 });
390
392 string mode = dropdown.
value();
393
396 FL_WARN(
"Render mode changed to: " << mode);
397 }
398 }
399 });
400
401
404 switch(value) {
405 case 0: order =
RGB;
break;
406 case 1: order =
RBG;
break;
407 case 2: order =
GRB;
break;
408 case 3: order =
GBR;
break;
409 case 4: order =
BRG;
break;
410 case 5: order =
BGR;
break;
411 }
414 }
415 });
416
417
419
421}
FL_DISABLE_WARNING_PUSH FL_DISABLE_WARNING_GLOBAL_CONSTRUCTORS CFastLED FastLED
Global LED strip management instance.
@ APA102HD
APA102 LED chipset with 5-bit gamma correction.
CLEDController * controller
Base definition for an LED controller.
Manages and renders multiple visual effects (Fx) for LED strips.
fl::size getOptionCount() const
fl::string getOption(fl::size index) const
static XYMap constructRectangularGrid(u16 width, u16 height, u16 offset=0)
UIDropdown paletteDropdown("Color Palette", paletteOptions)
fl::unique_ptr< Animartrix > animartrix
UIGroup noiseGroup("Noise Controls", noiseScale, noiseSpeed, paletteDropdown)
UIDropdown renderModeDropdown("Render Mode", renderModeOptions)
constexpr uint16_t CORKSCREW_HEIGHT
UINumberField animartrixColorOrder("Animartrix Color Order", 0, 0, 5)
fl::unique_ptr< FxEngine > fxEngine
constexpr uint16_t CORKSCREW_WIDTH
fl::shared_ptr< Grid< CRGB > > frameBufferPtr
WaveCrgbGradientMapPtr crgMap
CRGBPalette16 noisePalette
Corkscrew corkscrew(CORKSCREW_TURNS, NUM_LEDS)
const TProgmemRGBPalette16 OceanColors_p
Ocean colors, blues and whites.
const TProgmemRGBPalette16 HeatColors_p
Approximate "black body radiation" palette, akin to the FastLED HeatColor() function.
const TProgmemRGBPalette16 ForestColors_p
Forest colors, greens.
const TProgmemRGBPalette16 PartyColors_p
HSV color ramp: blue, purple, pink, red, orange, yellow (and back).
const TProgmemRGBPalette16 RainbowColors_p
HSV Rainbow.
shared_ptr< T > make_shared(Args &&... args)
EOrder
RGB color channel orderings, used when instantiating controllers to determine what order the controll...
@ RBG
Red, Blue, Green (0021)
@ BGR
Blue, Green, Red (0210)
@ GBR
Green, Blue, Red (0120)
@ GRB
Green, Red, Blue (0102)
@ BRG
Blue, Red, Green (0201)
@ RGB
Red, Green, Blue (0012)