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

◆ operator|=() [1/3]

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::operator|= ( const CPixelView< PIXEL_TYPE > & rhs)
inline

Apply the PIXEL_TYPE |= operator to every pixel in this set with every pixel in the passed in set.

With CRGB, this brings up each channel to the higher of the two values

See also
CRGB::operator|=

Definition at line 219 of file pixelset.h.

219{ for(iterator pixel = begin(), rhspixel = rhs.begin(), _end = end(), rhs_end = rhs.end(); (pixel != _end) && (rhspixel != rhs_end); ++pixel, ++rhspixel) { (*pixel) |= (*rhspixel); } return *this; }
iterator end()
Makes an iterator instance for the end of the LED set.
Definition pixelset.h:441
pixelset_iterator_base< PIXEL_TYPE > iterator
Iterator helper type for this class.
Definition pixelset.h:437
iterator begin()
Makes an iterator instance for the start of the LED set.
Definition pixelset.h:440
Represents a set of LED objects.
Definition pixelset.h:67