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

◆ calculateCorkscrewWidth()

fl::u16 fl::calculateCorkscrewWidth ( float totalTurns,
fl::u16 numLeds )
constexpr

Definition at line 51 of file corkscrew.h.

51 {
52 return static_cast<fl::u16>(ceil_constexpr(static_cast<float>(numLeds) / totalTurns));
53}
constexpr int ceil_constexpr(float value) FL_NOEXCEPT
Definition math.h:287

References ceil_constexpr().

Referenced by calculateCorkscrewHeight().

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