FastLED 3.10.6
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 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().

+ Here is the call graph for this function: