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

◆ coordToU8< float >()

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

Definition at line 30 of file primitives.h.

30 {
31 return (fl::u8)fl::round(alpha * 255.0f);
32}
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: