FastLED 3.9.15
Loading...
Searching...
No Matches

◆ NoiseExample8()

void NoiseExample8 ( )

Definition at line 1284 of file funky.cpp.

1284 {
1286 x++;
1287 z++;
1288 FillNoise(x * 3, x * 3, z, sin8(x) >> 1);
1289 for (int i = 0; i < kMatrixWidth; i++) {
1290 for (int j = 0; j < kMatrixHeight; j++) {
1291 leds[XY(i, j)] = ColorFromPalette(currentPalette, noise[i][j], 255,
1293 }
1294 }
1295 ShowFrame();
1296}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
int x
Definition Audio.ino:71
TBlendType currentBlending
CRGBPalette16 currentPalette
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
Definition Fire2023.ino:88
uint32_t z[NUM_LAYERS]
Definition Fire2023.ino:84
#define kMatrixHeight
#define kMatrixWidth
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
int XY(int x, int y)
Definition funky.cpp:190
void ChangePalettePeriodically()
Definition funky.cpp:1161
void ShowFrame()
Definition funky.cpp:993
void FillNoise(uint16_t x, uint16_t y, uint16_t z, uint16_t scale)
Definition funky.cpp:1040
#define sin8
Platform-independent alias of the fast sin implementation.
Definition trig8.h:221

References ChangePalettePeriodically(), ColorFromPalette(), currentBlending, currentPalette, FillNoise(), kMatrixHeight, kMatrixWidth, leds, noise, ShowFrame(), sin8, x, XY(), and z.

+ Here is the call graph for this function: