FastLED 3.10.8
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 164 of file pixelset.h.

164 {
165 for(iterator pixel = begin(), _end = end(); pixel != _end; ++pixel) { (*pixel) = color; }
166 return *this;
167 }
iterator end() FL_NO_EXCEPT
Definition pixelset.h:482
iterator begin() FL_NO_EXCEPT
Definition pixelset.h:481
pixelset_iterator_base< CRGB > iterator
Definition pixelset.h:478
A version of CPixelView<CRGB> with an included array of CRGB LEDs.
Definition pixelset.h:502