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

◆ NoiseExample4()

void NoiseExample4 ( )

Definition at line 1091 of file funky.cpp.

1091 {
1093 FillNoise(100, 100, 100, 100);
1094 for (int i = 0; i < p[0] + 1; i++) {
1095 for (int j = 0; j < kMatrixHeight; j++) {
1096 leds[XY(i, j)] += CHSV(noise[i][j + p[2]], 255, 255);
1097 }
1098 }
1099 ShowFrame();
1100 ClearAll();
1101}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
Definition Fire2023.ino:88
#define kMatrixHeight
int XY(int x, int y)
Definition funky.cpp:190
void ClearAll()
Definition funky.cpp:237
void ShowFrame()
Definition funky.cpp:993
void FillNoise(uint16_t x, uint16_t y, uint16_t z, uint16_t scale)
Definition funky.cpp:1040
void MoveOscillators()
Definition funky.cpp:248
static FASTLED_NAMESPACE_BEGIN uint8_t const p[]
Definition noise.cpp:30
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition chsv.h:16

References ClearAll(), FillNoise(), kMatrixHeight, leds, MoveOscillators(), noise, p, ShowFrame(), and XY().

+ Here is the call graph for this function: