MCPcopy Create free account
hub / github.com/FastLED/FastLED / DrawSequentialRepeat

Method DrawSequentialRepeat

examples/LuminescentGrand/arduino/LedRopeTCL.cpp:152–169  ·  view source on GitHub ↗

//////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

150
151///////////////////////////////////////////////////////////////////////////////
152void LedRopeTCL::DrawSequentialRepeat(int repeat) {
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 }
168 RawCommitDraw();
169}
170
171///////////////////////////////////////////////////////////////////////////////
172void LedRopeTCL::DrawRepeat(const int* value_array, int array_length) {

Callers 1

PaintMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected