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

◆ mapf()

float mapf ( float x,
float in_min,
float in_max,
float out_min,
float out_max )

Definition at line 17 of file util.cpp.

17 {
18 return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
19}
uint32_t x[NUM_LAYERS]
Definition Fire2023.ino:80

References x.

Referenced by CalcDecayFactor(), and anonymous_namespace{Painter.cpp}::CalcSaturation().

+ Here is the caller graph for this function: