FastLED 3.10.8
Loading...
Searching...
No Matches

◆ coordToU8< int >()

template<>
fl::u8 fl::gfx::coordToU8< int > ( int alpha)
inline

Definition at line 44 of file primitives.h.

44 {
45 return (fl::u8)fl::clamp(alpha, 0, 255);
46}
unsigned char u8
Definition stdint.h:131
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NO_EXCEPT

References fl::clamp(), and fl::FL_NO_EXCEPT.

+ Here is the call graph for this function: