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

◆ DrawSequentialRepeat()

void LedRopeTCL::DrawSequentialRepeat ( int repeat)
virtual

Implements LedRopeInterface.

Definition at line 139 of file LedRopeTCL.cpp.

139 {
140 RawBeginDraw();
141
142 const Color3i* begin = GetIterator(0);
143 const Color3i* middle = GetIterator(draw_offset_);
144 const Color3i* end = GetIterator(length());
145 for (const Color3i* it = middle; it != end; ++it) {
146 for (int i = 0; i < repeat; ++i) {
147 RawDrawPixel(it->r_, it->g_, it->b_);
148 }
149 }
150 for (const Color3i* it = begin; it != middle; ++it) {
151 for (int i = 0; i < repeat; ++i) {
152 RawDrawPixel(it->r_, it->g_, it->b_);
153 }
154 }
156}
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: