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

◆ NoiseExample6()

void NoiseExample6 ( )

Definition at line 1135 of file funky.cpp.

1135 {
1136 // MoveOscillators();
1137 for (int size = 1; size < 200; size++) {
1138 z++;
1139 FillNoise(size, size, z, size);
1140 for (int i = 0; i < kMatrixWidth; i++) {
1141 for (int j = 0; j < kMatrixHeight; j++) {
1142 leds[XY(i, j)] = CHSV(50 + noise[i][j], 255, 255);
1143 }
1144 }
1145 ShowFrame();
1146 // ClearAll();
1147 }
1148 for (int size = 200; size > 1; size--) {
1149 z++;
1150 FillNoise(size, size, z, size);
1151 for (int i = 0; i < kMatrixWidth; i++) {
1152 for (int j = 0; j < kMatrixHeight; j++) {
1153 leds[XY(i, j)] = CHSV(50 + noise[i][j], 255, 255);
1154 }
1155 }
1156 ShowFrame();
1157 // ClearAll();
1158 }
1159}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
Definition Fire2023.ino:88
uint32_t z[NUM_LAYERS]
Definition Fire2023.ino:84
#define kMatrixHeight
#define kMatrixWidth
int XY(int x, int y)
Definition funky.cpp:190
void ShowFrame()
Definition funky.cpp:993
void FillNoise(uint16_t x, uint16_t y, uint16_t z, uint16_t scale)
Definition funky.cpp:1040
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition chsv.h:16

References FillNoise(), kMatrixHeight, kMatrixWidth, leds, noise, ShowFrame(), XY(), and z.

+ Here is the call graph for this function: