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

◆ NoiseExample2()

void NoiseExample2 ( )

Definition at line 1050 of file funky.cpp.

1050 {
1052 FillNoise(2000 - p[2] * 100, 100, 100, 100);
1053 for (int i = 0; i < p[2]; i++) {
1054 for (int j = 0; j < kMatrixHeight; j++) {
1055 leds[XY(i, j)] = CRGB(noise[i][j], 0, 0);
1056 }
1057 }
1058 for (int i = 0; i < p[1]; i++) {
1059 for (int j = 0; j < kMatrixHeight; j++) {
1060 leds[XY(j, i)] += CRGB(0, 0, noise[i][j]);
1061 }
1062 }
1063 ShowFrame();
1064 ClearAll();
1065}
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 RGB pixel (Red, Green, Blue)
Definition crgb.h:55

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

+ Here is the call graph for this function: