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

◆ fade()

FASTLED_FORCE_INLINE fl::i16 fl::perlin_s8x8::fade ( fl::i16 t,
const fl::i32 * table )
staticprivate

Definition at line 72 of file perlin_s8x8.cpp.hpp.

72 {
73 // t is Q8 (0-255 range), use directly as index
74 fl::u8 idx = static_cast<fl::u8>(t);
75 // Return LUT value, convert from i32 to i16 (values fit in Q8 range)
76 return static_cast<fl::i16>(table[idx]);
77}
unsigned char u8
Definition s16x16x4.h:132

References FASTLED_FORCE_INLINE, and fl::t.

Referenced by pnoise2d_raw().

+ Here is the caller graph for this function: