37 string fxName()
const override {
return "NoisePalette"; }
73 CRGBPalette16 newPalette;
75 newPalette = CRGBPalette16(
96 green, green, black, black, purple, purple, black, black, green,
97 green, black, black, purple, purple, black, black);
UINumberField palette("Palette", 0, 0, 2)
u16 xyMap(u16 x, u16 y) const
u8 getPalettePresetCount() const
CRGBPalette16 currentPalette
string fxName() const override
u8 getPalettePreset() const
void mapNoiseToLEDsUsingPalette(fl::span< CRGB > leds)
void SetupBlackAndWhiteStripedPalette()
bool hasFixedFrameRate(float *fps) const override
u8 changeToRandomPalette()
void SetupPurpleAndGreenPalette()
fl::vector_psram< u8 > noise
void SetupRandomPalette()
NoisePalette(XYMap xyMap, float fps=60.f)
void setPalettePreset(int paletteIndex)
void setPalette(const CRGBPalette16 &palette, u16 speed, u16 scale, bool colorLoop)
void draw(DrawContext context) override
Fast, efficient random number generators specifically designed for high-performance LED programming.
void fill_solid(CRGB *targetArray, int numToFill, const CRGB &color)
Fill a range of LEDs with a solid color.
@ HUE_PURPLE
Purple (270°)
LIB8STATIC fl::u8 random8() FL_NOEXCEPT
Generate an 8-bit random number.
Base definition for an LED controller.
#define FASTLED_SHARED_PTR(type)
@ White
<div style='background:#FFFFFF;width:4em;height:4em;'></div>
@ Black
<div style='background:#000000;width:4em;height:4em;'></div>
Representation of an 8-bit RGB pixel (Red, Green, Blue)