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

◆ FillNoise()

void FillNoise ( uint16_t x,
uint16_t y,
uint16_t z,
uint16_t scale )

Definition at line 1040 of file funky.cpp.

1040 {
1041 for (int i = 0; i < MAX_DIMENSION; i++) {
1042 int ioffset = scale * i;
1043 for (int j = 0; j < MAX_DIMENSION; j++) {
1044 int joffset = scale * j;
1045 noise[i][j] = inoise8(x + ioffset, y + joffset, z);
1046 }
1047 }
1048}
int y
Definition Audio.ino:72
int x
Definition Audio.ino:71
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, x, y, and z.

Referenced by NoiseExample2(), NoiseExample3(), NoiseExample4(), NoiseExample5(), NoiseExample6(), NoiseExample7(), and NoiseExample8().

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