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

◆ coordToU8< int >()

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

Definition at line 42 of file primitives.h.

42 {
43 return (fl::u8)fl::clamp(alpha, 0, 255);
44}
unsigned char u8
Definition s16x16x4.h:132
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NOEXCEPT

References fl::clamp().

+ Here is the call graph for this function: