FastLED 3.10.8
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 73 of file perlin_s8x8.cpp.hpp.

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

References FASTLED_FORCE_INLINE, fl::FL_NO_EXCEPT, and fl::t.