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

Method calculateSteps

src/fl/gfx/xypath.cpp.hpp:291–294  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291int XYPath::calculateSteps(float from, float to) {
292 float diff = fl::clamp(fl::abs(to - from), 0.0f, 1.0f);
293 return fl::max(1, 200 * diff);
294}
295
296bool XYPath::hasDrawBounds() const { return mPathRenderer->hasDrawBounds(); }
297

Callers

nothing calls this directly

Calls 3

clampFunction · 0.85
maxFunction · 0.85
absFunction · 0.50

Tested by

no test coverage detected