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

◆ lerp()

FASTLED_FORCE_INLINE fl::i16 fl::perlin_s8x8::lerp ( fl::i16 t,
fl::i16 a,
fl::i16 b )
staticprivate

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

80 {
81 // All values in Q8, result stays Q8
82 return static_cast<fl::i16>(
83 a + (((static_cast<fl::i32>(t) * (b - a)) >> HP_BITS)));
84}
static constexpr int HP_BITS
Definition perlin_s8x8.h:16

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