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

◆ fillnoise8()

void fillnoise8 ( )
Examples
Noise.ino, NoisePlusPalette.ino, and SmartMatrix.ino.

Definition at line 94 of file Noise.ino.

94 {
95 for(int i = 0; i < MAX_DIMENSION; i++) {
96 int ioffset = scale * i;
97 for(int j = 0; j < MAX_DIMENSION; j++) {
98 int joffset = scale * j;
99 noise[i][j] = inoise8(x + ioffset,y + joffset,z);
100 }
101 }
102 z += speed;
103}
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 MAX_DIMENSION
Definition Noise.ino:21
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(), MAX_DIMENSION, 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: