FastLED 3.10.6
Loading...
Searching...
No Matches

◆ fillnoise8()

void fillnoise8 ( )
Examples
Noise.ino.

Definition at line 103 of file Noise.ino.

103 {
104 for(int i = 0; i < MAX_DIMENSION; i++) {
105 int ioffset = scale * i;
106 for(int j = 0; j < MAX_DIMENSION; j++) {
107 int joffset = scale * j;
108 noise[i][j] = inoise8(x + ioffset,y + joffset,z);
109 }
110 }
111 z += speed;
112}
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:72
#define MAX_DIMENSION
Definition Noise.ino:30
fl::u8 inoise8(fl::u16 x, fl::u16 y, fl::u16 z)
8-Bit, fixed point implementation of Perlin's noise.

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: