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

◆ calculateSteps()

int fl::XYPath::calculateSteps ( float from,
float to )
private

Definition at line 277 of file xypath.cpp.

277 {
278 float diff = fl::clamp(ABS(to - from), 0.0f, 1.0f);
279 return MAX(1, 200 * diff);
280}
#define ABS(x)
Definition math_macros.h:19
#define MAX(a, b)
Definition math_macros.h:11
FASTLED_FORCE_INLINE T clamp(T value, T min, T max)
Definition clamp.h:10

References ABS, fl::clamp(), and MAX.

Referenced by drawColor(), and drawGradient().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: