FastLED 3.10.8
Loading...
Searching...
No Matches

◆ f2u8()

u8 fl::FlowFieldFloat::f2u8 ( float v)
staticprivate

Definition at line 147 of file flowfield.cpp.hpp.

147 {
148 int i = (int)v;
149 if (i < 0)
150 return 0;
151 if (i > 255)
152 return 255;
153 return (u8)i;
154}
unsigned char u8
Definition stdint.h:131

References fl::FL_NO_EXCEPT.

Referenced by drawImpl().

+ Here is the caller graph for this function: