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

◆ Corkscrew() [2/4]

fl::Corkscrew::Corkscrew ( float totalTurns,
fl::span< CRGB > dstPixels,
bool invert = false,
const Gap & gapParams = Gap() )

Definition at line 89 of file corkscrew.cpp.hpp.

90 : mTotalTurns(totalTurns), mNumLeds(static_cast<fl::u16>(dstPixels.size())),
91 mGapParams(gapParams), mInvert(invert) {
92 fl::calculateDimensions(mTotalTurns, mNumLeds, mGapParams, &mWidth, &mHeight);
93 mPixelStorage = dstPixels;
94 mOwnsPixels = false; // External span
95}
fl::u16 mWidth
Definition corkscrew.h:228
fl::u16 mNumLeds
Definition corkscrew.h:223
float mTotalTurns
Definition corkscrew.h:222
fl::u16 mHeight
Definition corkscrew.h:229
PixelStorage mPixelStorage
Definition corkscrew.h:232
constexpr fl::size size() const FL_NO_EXCEPT
Definition span.h:483

References fl::FL_NO_EXCEPT, mGapParams, mHeight, mInvert, mNumLeds, mOwnsPixels, mPixelStorage, mTotalTurns, and mWidth.