FastLED 3.10.8
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 79 of file chasing_spirals.cpp.hpp.

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

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

Referenced by applyRadialFilter().

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