MCPcopy Create free account
hub / github.com/FastLED/FastLED / Corkscrew

Method Corkscrew

src/fl/gfx/corkscrew.cpp.hpp:81–85  ·  view source on GitHub ↗

New primary constructor

Source from the content-addressed store, hash-verified

79
80// New primary constructor
81Corkscrew::Corkscrew(float totalTurns, fl::u16 numLeds, bool invert, const Gap& gapParams)
82 : mTotalTurns(totalTurns), mNumLeds(numLeds), mGapParams(gapParams), mInvert(invert) {
83 fl::calculateDimensions(mTotalTurns, mNumLeds, mGapParams, &mWidth, &mHeight);
84 mOwnsPixels = false;
85}
86
87// Constructor with external pixel buffer
88Corkscrew::Corkscrew(float totalTurns, fl::span<CRGB> dstPixels, bool invert, const Gap& gapParams)

Callers

nothing calls this directly

Calls 2

calculateDimensionsFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected