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

◆ inoise8() [3/3]

uint8_t inoise8 ( uint16_t x,
uint16_t y,
uint16_t z )
extern

8-Bit, fixed point implementation of Perlin's noise.

See also
inoise8_raw()
Returns
scaled noise value as an unsigned integer, 0-255
Parameters
xx-axis coordinate on noise map (1D)
yy-axis coordinate on noise map (2D)
zz-axis coordinate on noise map (3D)

Definition at line 570 of file noise.cpp.

570 {
571 //return scale8(76+(inoise8_raw(x,y,z)),215)<<1;
572 int8_t n = inoise8_raw( x, y, z); // -64..+64
573 n+= 64; // 0..128
574 uint8_t ans = qadd8( n, n); // 0..255
575 return ans;
576}
int y
Definition simple.h:93
int x
Definition simple.h:92
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:94
LIB8STATIC_ALWAYS_INLINE uint8_t qadd8(uint8_t i, uint8_t j)
Add one byte to another, saturating at 0xFF.
Definition math8.h:40
int8_t inoise8_raw(uint16_t x, uint16_t y, uint16_t z)
8-bit, fixed point implementation of Perlin's noise without scaling.
Definition noise.cpp:529

References inoise8_raw(), qadd8(), x, y, and z.

Referenced by fl::Luminova::draw(), fill_raw_2dnoise8(), fill_raw_noise8(), fillFrameBufferNoise(), fillnoise8(), fl::NoisePalette::fillnoise8(), loop(), fl::Luminova::resetParticle(), and resetParticle().

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