4#ifndef FASTLED_INTERNAL
5#define FASTLED_INTERNAL
24 "Palette size mismatch");
113 for (u16 i = 0; i <
width; i++) {
114 for (u16 j = 0; j <
height; j++) {
132 bri = dim8_raw(bri * 2);
148 u8 dataSmoothing = 0;
150 dataSmoothing = 200 - (
speed * 4);
153 for (u16 i = 0; i <
width; i++) {
154 int ioffset =
scale * i;
155 for (u16 j = 0; j <
height; j++) {
156 int joffset =
scale * j;
164 data = qsub8(data, 16);
165 data = qadd8(data, scale8(data, 39));
169 u8 newdata = scale8(olddata, dataSmoothing) +
170 scale8(data, 256 - dataSmoothing);
void SetupPurpleAndGreenPalette()
void SetupBlackAndWhiteStripedPalette()
fl::UISlider scale("Scale", 4,.1, 4,.1)
u16 xyMap(u16 x, u16 y) const FL_NO_EXCEPT
Fx2d(const XYMap &xyMap) FL_NO_EXCEPT
CRGBPalette16 currentPalette
void setPalettePreset(int paletteIndex) FL_NO_EXCEPT
void mapNoiseToLEDsUsingPalette(fl::span< CRGB > leds) FL_NO_EXCEPT
void SetupRandomPalette() FL_NO_EXCEPT
void fillnoise8() FL_NO_EXCEPT
fl::vector_psram< u8 > noise
NoisePalette(XYMap xyMap, float fps=60.f) FL_NO_EXCEPT
u8 changeToRandomPalette() FL_NO_EXCEPT
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) FL_NO_EXCEPT
8-Bit, fixed point implementation of Perlin's noise.
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_NO_EXCEPT
Generate a 16-bit random number.
LIB8STATIC fl::u8 random8() FL_NO_EXCEPT
Generate an 8-bit random number.
u8 u8 fract8 blur_amount FL_NO_EXCEPT
fl::u16 XY(fl::u16 x, fl::u16 y)
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
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)