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

◆ Draw()

void LedRopeTCL::Draw ( )

Definition at line 141 of file LedRopeTCL.cpp.

141 {
142 RawBeginDraw();
143
144 const Color3i* begin = GetIterator(0);
145 const Color3i* middle = GetIterator(mDrawOffset);
146 const Color3i* end = GetIterator(length() - 1);
147
148 for (const Color3i* it = middle; it != end; ++it) {
149 RawDrawPixel(*it);
150 }
151 for (const Color3i* it = begin; it != middle; ++it) {
152 RawDrawPixel(*it);
153 }
155}
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: