FastLED 3.10.8
Loading...
Searching...
No Matches

◆ inoise8() [3/3]

fl::u8 inoise8 ( fl::u16 x,
fl::u16 y,
fl::u16 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 613 of file noise.cpp.hpp.

613 {
614 //return scale8(76+(inoise8_raw(x,y,z)),215)<<1;
615 fl::i8 n = inoise8_raw( x, y, z); // -64..+64
616 n+= 64; // 0..128
617 fl::u8 ans = qadd8( n, n); // 0..255
618 return ans;
619}
int y
Definition simple.h:93
int x
Definition simple.h:92
uint32_t z[NUM_LAYERS]
Definition Fire2023.h:93
fl::i8 inoise8_raw(fl::u16 x, fl::u16 y, fl::u16 z) FL_NO_EXCEPT
8-bit, fixed point implementation of Perlin's noise without scaling.
unsigned char u8
Definition stdint.h:131
signed char i8
Definition stdint.h:130

References FL_NO_EXCEPT, inoise8_raw(), 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: