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

◆ clamp()

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

Definition at line 145 of file u24x8.h.

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

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