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

◆ coordToU8< double >()

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

Definition at line 36 of file primitives.h.

36 {
37 return (fl::u8)fl::round(alpha * 255.0);
38}
unsigned char u8
Definition s16x16x4.h:132
enable_if<!is_integral< T >::value, T >::type round(T value) FL_NOEXCEPT
Definition math.h:319

References fl::round().

+ Here is the call graph for this function: