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

◆ to_uint8()

uint8_t fl::anonymous_namespace{xypath_renderer.cpp}::to_uint8 ( float f)

Definition at line 13 of file xypath_renderer.cpp.

13 {
14 // convert to [0..255] range
15 uint8_t i = static_cast<uint8_t>(f * 255.0f + .5f);
16 return MIN(i, 255);
17}
#define MIN(a, b)
Definition math_macros.h:15

References MIN, and to_uint8().

Referenced by to_uint8().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: