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

◆ clamp()

static constexpr FASTLED_FORCE_INLINE s8x8 fl::s8x8::clamp ( s8x8 x,
s8x8 lo,
s8x8 hi )
inlinestaticconstexpr

Definition at line 144 of file s8x8.h.

144 {
145 return x < lo ? lo : (x > hi ? hi : x);
146 }

References s8x8(), FASTLED_FORCE_INLINE, FL_NOEXCEPT, and fl::x.

Referenced by smoothstep().

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