MCPcopy Create free account
hub / github.com/FastLED/FastLED / mapf

Function mapf

examples/LuminescentGrand/shared/util.cpp:18–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16}
17
18float mapf(float x, float in_min, float in_max, float out_min, float out_max) {
19 return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
20}
21
22// Given an input time.
23float AttackRemapFactor(uint32_t delta_t_ms) {

Callers 3

noiseCircleDrawMethod · 0.85
CalcSaturationFunction · 0.85
CalcDecayFactorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected