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

Method AttackRemapFactor

examples/LuminescentGrand/shared/Keyboard.cpp:58–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58float Key::AttackRemapFactor(uint32_t now_ms) {
59 if (mOn) {
60 return ::AttackRemapFactor(now_ms - mEventTime);
61 } else {
62 return 1.0;
63 }
64}
65
66float Key::IntensityFactor() const {
67 return mIntensity;

Callers

nothing calls this directly

Calls 1

AttackRemapFactorFunction · 0.85

Tested by

no test coverage detected