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

◆ clamp()

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

Definition at line 147 of file u8x8.h.

147 {
148 return x < lo ? lo : (x > hi ? hi : x);
149 }

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