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

◆ operator=() [2/2]

template<int SIZE>
CPixelView & CPixelView< PIXEL_TYPE >::operator= ( const PIXEL_TYPE & color)
inline

Assign the passed in color to all elements in this set.

Parameters
colorthe new color for the elements in the set

Definition at line 128 of file pixelset.h.

128 {
129 for(iterator pixel = begin(), _end = end(); pixel != _end; ++pixel) { (*pixel) = color; }
130 return *this;
131 }
iterator end()
Definition pixelset.h:441
pixelset_iterator_base< CRGB > iterator
Definition pixelset.h:437
iterator begin()
Definition pixelset.h:440
A version of CPixelView<CRGB> with an included array of CRGB LEDs.
Definition pixelset.h:461