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

◆ subFromRGB()

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::subFromRGB ( uint8_t inc)
inline

Subtract the passed in value from all channels for all of the pixels in this set.

Definition at line 155 of file pixelset.h.

155{ for(iterator pixel = begin(), _end = end(); pixel != _end; ++pixel) { (*pixel) -= inc; } return *this; }
iterator end()
Makes an iterator instance for the end of the LED set.
Definition pixelset.h:433
pixelset_iterator_base< PIXEL_TYPE > iterator
Iterator helper type for this class.
Definition pixelset.h:429
iterator begin()
Makes an iterator instance for the start of the LED set.
Definition pixelset.h:432
Represents a set of LED objects.
Definition pixelset.h:59