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

◆ fillnoise8()

void fillnoise8 ( )

Definition at line 95 of file SmartMatrixSketch.h.

95 {
96 for(int i = 0; i < kMatrixWidth; i++) {
97 int ioffset = scale * i;
98 for(int j = 0; j < kMatrixHeight; j++) {
99 int joffset = scale * j;
100 noise[i][j] = inoise8(x + ioffset,y + joffset,z);
101 }
102 }
103 z += speed;
104}
int y
Definition simple.h:93
int x
Definition simple.h:92
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
Definition Fire2023.h:98
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:94
uint16_t speed
Definition Noise.ino:63
uint16_t scale
Definition Noise.ino:74
#define kMatrixHeight
#define kMatrixWidth
uint8_t inoise8(uint16_t x, uint16_t y, uint16_t z)
8-Bit, fixed point implementation of Perlin's noise.
Definition noise.cpp:570

References inoise8(), kMatrixHeight, kMatrixWidth, noise, scale, speed, x, y, and z.

Referenced by loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: