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

◆ fillnoise8()

void fillnoise8 ( )

Definition at line 97 of file SmartMatrixSketch.h.

97 {
98 for(int i = 0; i < kMatrixWidth; i++) {
99 int ioffset = scale * i;
100 for(int j = 0; j < kMatrixHeight; j++) {
101 int joffset = scale * j;
102 noise[i][j] = inoise8(x + ioffset,y + joffset,z);
103 }
104 }
105 z += speed;
106}
int y
Definition simple.h:93
int x
Definition simple.h:92
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
Definition Fire2023.h:97
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:93
fl::UISlider scale("Scale", 4,.1, 4,.1)
uint16_t speed
Definition Noise.ino:66
#define kMatrixHeight
#define kMatrixWidth
fl::u8 inoise8(fl::u16 x, fl::u16 y, fl::u16 z)

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: