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

◆ inoise8() [1/3]

fl::u8 inoise8 ( fl::u16 x)
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)

Definition at line 691 of file noise.cpp.hpp.

691 {
692 fl::i8 n = inoise8_raw(x); //-64..+64
693 n += 64; // 0..128
694 fl::u8 ans = qadd8(n,n); // 0..255
695 return ans;
696}
int x
Definition simple.h:92
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(), and x.

+ Here is the call graph for this function: