4#ifndef FASTLED_INTERNAL
5#define FASTLED_INTERNAL
23 "Palette size mismatch");
112 for (u16 i = 0; i <
width; i++) {
113 for (u16 j = 0; j <
height; j++) {
131 bri = dim8_raw(bri * 2);
147 u8 dataSmoothing = 0;
149 dataSmoothing = 200 - (
speed * 4);
152 for (u16 i = 0; i <
width; i++) {
153 int ioffset =
scale * i;
154 for (u16 j = 0; j <
height; j++) {
155 int joffset =
scale * j;
163 data = qsub8(data, 16);
164 data = qadd8(data, scale8(data, 39));
168 u8 newdata = scale8(olddata, dataSmoothing) +
169 scale8(data, 256 - dataSmoothing);
u16 xyMap(u16 x, u16 y) const
CRGBPalette16 currentPalette
void mapNoiseToLEDsUsingPalette(fl::span< CRGB > leds)
void SetupBlackAndWhiteStripedPalette()
u8 changeToRandomPalette()
void SetupPurpleAndGreenPalette()
fl::vector_psram< u8 > noise
void SetupRandomPalette()
NoisePalette(XYMap xyMap, float fps=60.f)
void setPalettePreset(int paletteIndex)
Fast, efficient random number generators specifically designed for high-performance LED programming.
Internal FastLED header for implementation files.
fl::u8 inoise8(fl::u16 x, fl::u16 y, fl::u16 z)
const TProgmemRGBPalette16 RainbowStripeColors_p
HSV Rainbow colors with alternatating stripes of black.
const TProgmemRGBPalette16 OceanColors_p
Ocean colors, blues and whites.
const TProgmemRGBPalette16 CloudColors_p
Cloudy color palette.
const TProgmemRGBPalette16 ForestColors_p
Forest colors, greens.
const TProgmemRGBPalette16 LavaColors_p
Lava color palette.
const TProgmemRGBPalette16 PartyColors_p
HSV color ramp: blue, purple, pink, red, orange, yellow (and back).
const TProgmemRGBPalette16 RainbowColors_p
HSV Rainbow.
LIB8STATIC fl::u16 random16() FL_NOEXCEPT
Generate a 16-bit random number.
LIB8STATIC fl::u8 random8() FL_NOEXCEPT
Generate an 8-bit random number.
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType)
Base definition for an LED controller.
Demonstrates how to mix noise generation with color palettes on a 2D LED matrix.
#define FL_STATIC_ASSERT(...)
Portable compile-time assertion wrapper.
Representation of an 8-bit RGB pixel (Red, Green, Blue)