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

◆ NoiseExample3()

void NoiseExample3 ( )

Definition at line 1067 of file funky.cpp.

1067 {
1069 FillNoise(p[1] * 100, p[2] * 100, 100, 100);
1070 for (int i = 0; i < p[1]; i++) {
1071 for (int j = 0; j < kMatrixHeight; j++) {
1072 leds[XY(i, j)] = CHSV(noise[i][j], 255, 200);
1073 }
1074 }
1075
1076 for (int i = 0; i < p[3]; i++) {
1077 for (int j = 0; j < kMatrixHeight; j++) {
1078 leds[XY(j, i)] += CHSV(128 + noise[i][j], 255, 200);
1079 }
1080 }
1081
1082 ShowFrame();
1083 ClearAll();
1084}
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: