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

◆ fillnoise8()

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

Definition at line 1000 of file funky.cpp.

1000 {
1001 for (int i = 0; i < MAX_DIMENSION; i++) {
1002 int ioffset = scale * i;
1003 for (int j = 0; j < MAX_DIMENSION; j++) {
1004 int joffset = scale * j;
1005 noise[i][j] = inoise8(x + ioffset, y + joffset, z);
1006 }
1007 }
1008 y += speed;
1009 // z += 2;
1010}
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 MAX_DIMENSION
Definition funky.cpp:87
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(), MAX_DIMENSION, noise, scale, speed, x, y, and z.

Referenced by NoiseExample1().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: