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

◆ clamp()

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

Definition at line 143 of file s24x8.h.

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

References s24x8(), 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: