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

◆ applyRadialFilter()

FASTLED_FORCE_INLINE i32 fl::anonymous_namespace{chasing_spirals.cpp.hpp}::applyRadialFilter ( i32 noise_255,
i32 rf_raw )

Definition at line 78 of file chasing_spirals.cpp.hpp.

78 {
79 i32 result = static_cast<i32>((static_cast<i64>(noise_255) * rf_raw) >> (FP::FRAC_BITS * 2));
80 if (result < 0) result = 0;
81 if (result > 255) result = 255;
82 return result;
83}
static constexpr int FRAC_BITS
Definition s16x16.h:22
fl::i64 i64
Definition s16x16x4.h:222
expected< T, E > result
Alias for expected (Rust-style naming)
Definition result.h:31

References applyRadialFilter(), FASTLED_FORCE_INLINE, and fl::s16x16::FRAC_BITS.

Referenced by applyRadialFilter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: