109 {
112 uint32_t now = millis();
115 for (
int width = 0; width <
WIDTH; width++) {
116 for (
int height = 0; height <
HEIGHT; height++) {
117 uint8_t palette_index =
122 }
123 }
125}
CFastLED FastLED
Global LED strip management instance.
CRGBPalette16 getPalette()
TimeScale timeScale(0, 1.0f)
UISlider speedY("SpeedY", 1.3, 1, 6,.1)
XYMap xyMap(HEIGHT, WIDTH, SERPENTINE)
uint8_t getPaletteIndex(uint32_t millis32, int width, int max_width, int height, int max_height, uint32_t y_speed)
UISlider brightness("Brightness", 255, 0, 255, 1)
RGB color palette with 16 discrete values.
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
Get a color from a palette.
Representation of an RGB pixel (Red, Green, Blue)