FastLED 3.10.10
Loading...
Searching...
No Matches

◆ DrawSequentialRepeat()

void LedRopeTCL::DrawSequentialRepeat ( int repeat)
virtual

Implements LedRopeInterface.

Definition at line 158 of file LedRopeTCL.cpp.

158 {
159 RawBeginDraw();
160
161 const Color3i* begin = GetIterator(0);
162 const Color3i* middle = GetIterator(mDrawOffset);
163 const Color3i* end = GetIterator(length());
164 for (const Color3i* it = middle; it != end; ++it) {
165 for (int i = 0; i < repeat; ++i) {
166 RawDrawPixel(it->r_, it->g_, it->b_);
167 }
168 }
169 for (const Color3i* it = begin; it != middle; ++it) {
170 for (int i = 0; i < repeat; ++i) {
171 RawDrawPixel(it->r_, it->g_, it->b_);
172 }
173 }
175}
void RawCommitDraw()
void RawDrawPixel(const Color3i &c)
int mDrawOffset
Definition LedRopeTCL.h:72
Color3i * GetIterator(int i)
Definition LedRopeTCL.h:58
int length() const
Definition LedRopeTCL.h:62
void RawBeginDraw()
constexpr T * end(T(&array)[N]) FL_NO_EXCEPT
constexpr T * begin(T(&array)[N]) FL_NO_EXCEPT

References GetIterator(), length(), mDrawOffset, RawBeginDraw(), RawCommitDraw(), and RawDrawPixel().

+ Here is the call graph for this function: