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

◆ f2u8()

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

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

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

Referenced by drawImpl().

+ Here is the caller graph for this function: