FastLED 3.9.15
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 88 of file corkscrew.cpp.

89 : mTotalTurns(totalTurns), mNumLeds(static_cast<fl::u16>(dstPixels.size())),
90 mGapParams(gapParams), mInvert(invert) {
91 fl::calculateDimensions(mTotalTurns, mNumLeds, mGapParams, &mWidth, &mHeight);
92 mPixelStorage = dstPixels;
93 mOwnsPixels = false; // External span
94}
fl::u16 mWidth
Definition corkscrew.h:235
fl::u16 mNumLeds
Definition corkscrew.h:230
float mTotalTurns
Definition corkscrew.h:229
fl::u16 mHeight
Definition corkscrew.h:236
PixelStorage mPixelStorage
Definition corkscrew.h:239
fl::size size() const
Definition slice.h:142

References mGapParams, mHeight, mInvert, mNumLeds, mOwnsPixels, mPixelStorage, mTotalTurns, mWidth, and size().

+ Here is the call graph for this function: