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

◆ DrawSequentialRepeat()

void LedRopeTCL::DrawSequentialRepeat ( int repeat)
virtual

Implements LedRopeInterface.

Definition at line 152 of file LedRopeTCL.cpp.

152 {
153 RawBeginDraw();
154
155 const Color3i* begin = GetIterator(0);
156 const Color3i* middle = GetIterator(mDrawOffset);
157 const Color3i* end = GetIterator(length());
158 for (const Color3i* it = middle; it != end; ++it) {
159 for (int i = 0; i < repeat; ++i) {
160 RawDrawPixel(it->r_, it->g_, it->b_);
161 }
162 }
163 for (const Color3i* it = begin; it != middle; ++it) {
164 for (int i = 0; i < repeat; ++i) {
165 RawDrawPixel(it->r_, it->g_, it->b_);
166 }
167 }
169}
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 * begin(T(&array)[N]) FL_NOEXCEPT
constexpr T * end(T(&array)[N]) FL_NOEXCEPT

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

+ Here is the call graph for this function: