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

◆ NoiseExample1()

void NoiseExample1 ( )

Definition at line 1024 of file funky.cpp.

1024 {
1026 scale2 = 30 + p[1] * 3;
1027 x = p[0] * 16;
1028 fillnoise8();
1029 fillnoise82();
1030 for (int i = 0; i < kMatrixWidth; i++) {
1031 for (int j = 0; j < kMatrixHeight; j++) {
1032 leds[XY(i, j)] =
1033 CHSV(noise[i][j] << 1, 255, (noise2[i][j] + noise[i][j]) / 2);
1034 }
1035 }
1036
1037 ShowFrame();
1038}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
int x
Definition Audio.ino:71
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
Definition Fire2023.ino:88
uint8_t noise2[NUM_LAYERS][WIDTH][HEIGHT]
Definition Fire2023.ino:89
#define kMatrixHeight
#define kMatrixWidth
int XY(int x, int y)
Definition funky.cpp:190
void fillnoise8()
Definition funky.cpp:1000
void fillnoise82()
Definition funky.cpp:1012
void ShowFrame()
Definition funky.cpp:993
void MoveOscillators()
Definition funky.cpp:248
uint16_t scale2
Definition funky.cpp:84
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 fillnoise8(), fillnoise82(), kMatrixHeight, kMatrixWidth, leds, MoveOscillators(), noise, noise2, p, scale2, ShowFrame(), x, and XY().

+ Here is the call graph for this function: