FastLED 3.10.10
Loading...
Searching...
No Matches

◆ coordToU8< float >()

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

Definition at line 35 of file primitives.h.

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

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

+ Here is the call graph for this function: