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

◆ fillnoise8()

void fillnoise8 ( )

Definition at line 93 of file SmartMatrix.ino.

93 {
94 for(int i = 0; i < kMatrixWidth; i++) {
95 int ioffset = scale * i;
96 for(int j = 0; j < kMatrixHeight; j++) {
97 int joffset = scale * j;
98 noise[i][j] = inoise8(x + ioffset,y + joffset,z);
99 }
100 }
101 z += speed;
102}
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
Definition Fire2023.ino:86
uint32_t z[NUM_LAYERS]
Definition Fire2023.ino:82
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80
uint32_t y[NUM_LAYERS]
Definition Fire2023.ino:81
UISlider scale("Scale", 4,.1, 4,.1)
uint16_t speed
Definition Noise.ino:63
#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:616

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

+ Here is the call graph for this function: