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

◆ fade()

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

Definition at line 75 of file perlin_i16_optimized.cpp.hpp.

75 {
76 fl::u32 idx = static_cast<fl::u32>(t) >> 8; // i16 → 8-bit index
77 fl::i32 frac = t & 0xFF;
78 fl::i32 a = table[idx];
79 fl::i32 b = table[idx + 1];
80 return a + ((static_cast<fl::i32>(frac << 8) * (b - a)) >> 16);
81}

References FASTLED_FORCE_INLINE, and fl::t.

Referenced by pnoise2d_raw().

+ Here is the caller graph for this function: