FastLED 3.10.8
Loading...
Searching...
No Matches

◆ calculateSteps()

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

Definition at line 290 of file xypath.cpp.hpp.

290 {
291 float diff = fl::clamp(fl::abs(to - from), 0.0f, 1.0f);
292 return fl::max(1, 200 * diff);
293}
constexpr common_type_t< T, U > max(T a, U b) FL_NO_EXCEPT
Definition math.h:75
constexpr enable_if< is_fixed_point< T >::value, T >::type clamp(T x, T lo, T hi) FL_NO_EXCEPT
constexpr enable_if< is_fixed_point< T >::value, T >::type abs(T x) FL_NO_EXCEPT

References fl::abs(), fl::clamp(), fl::FL_NO_EXCEPT, and fl::max().

Referenced by drawColor(), and drawGradient().

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