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

◆ fade()

fl::i32 fl::perlin_s16x16::fade ( fl::i32 t,
const fl::i32 * table )
static

Definition at line 69 of file perlin_s16x16.cpp.hpp.

69 {
70 fl::u32 idx = static_cast<fl::u32>(t) >> 16;
71 fl::i32 frac = t & 0xFFFF;
72 fl::i32 a = table[idx];
73 fl::i32 b = table[idx + 1];
74 return a + static_cast<fl::i32>(
75 (static_cast<fl::i64>(frac) * (b - a)) >> 16);
76}
fl::i64 i64
Definition s16x16x4.h:222

References fl::t.

Referenced by pnoise2d_raw(), fl::perlin_s16x16_simd::pnoise2d_raw_simd4_vec(), and pnoise3d_raw().

+ Here is the caller graph for this function: