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

◆ Draw()

void LedRopeTCL::Draw ( )

Definition at line 135 of file LedRopeTCL.cpp.

135 {
136 RawBeginDraw();
137
138 const Color3i* begin = GetIterator(0);
139 const Color3i* middle = GetIterator(mDrawOffset);
140 const Color3i* end = GetIterator(length() - 1);
141
142 for (const Color3i* it = middle; it != end; ++it) {
143 RawDrawPixel(*it);
144 }
145 for (const Color3i* it = begin; it != middle; ++it) {
146 RawDrawPixel(*it);
147 }
149}
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: