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

◆ AttackRemapFactor()

float AttackRemapFactor ( uint32_t delta_t_ms)

Definition at line 22 of file util.cpp.

22 {
23 typedef InterpData<uint32_t, float> Datum;
24 static const Datum kData[] = {
25 Datum(0, .5),
26 Datum(80, 1.0),
27 };
28
29 static const int n = sizeof(kData) / sizeof(kData[0]);
30 return Interp(delta_t_ms, kData, n);
31}
ValT Interp(const KeyT &k, const InterpData< KeyT, ValT > *array, const int n)

References Interp().

+ Here is the call graph for this function: