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}
int y
Definition Audio.ino:72
int x
Definition Audio.ino:71
UISlider speed("Speed", 1.0f, -20.0f, 20.0f, 0.01f)
UISlider scale("Scale", 1.0f, 0.0f, 1.0f, 0.01f)
uint8_t noise[NUM_LAYERS][WIDTH][HEIGHT]
Definition Fire2023.ino:88
uint32_t z[NUM_LAYERS]
Definition Fire2023.ino:84
#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:590

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: