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

◆ AttackRemapFactor()

float AttackRemapFactor ( uint32_t delta_t_ms)

Definition at line 23 of file util.cpp.

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

References Interp().

+ Here is the call graph for this function: