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

◆ DrawSequentialRepeat()

void LedRopeTCL::DrawSequentialRepeat ( int repeat)
virtual

Implements LedRopeInterface.

Definition at line 141 of file LedRopeTCL.cpp.

141 {
142 RawBeginDraw();
143
144 const Color3i* begin = GetIterator(0);
145 const Color3i* middle = GetIterator(draw_offset_);
146 const Color3i* end = GetIterator(length());
147 for (const Color3i* it = middle; it != end; ++it) {
148 for (int i = 0; i < repeat; ++i) {
149 RawDrawPixel(it->r_, it->g_, it->b_);
150 }
151 }
152 for (const Color3i* it = begin; it != middle; ++it) {
153 for (int i = 0; i < repeat; ++i) {
154 RawDrawPixel(it->r_, it->g_, it->b_);
155 }
156 }
158}
void RawCommitDraw()
void RawDrawPixel(const Color3i &c)
Color3i * GetIterator(int i)
Definition LedRopeTCL.h:59
int length() const
Definition LedRopeTCL.h:63
int draw_offset_
Definition LedRopeTCL.h:73
void RawBeginDraw()

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

+ Here is the call graph for this function: