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

◆ nblend() [1/2]

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::nblend ( const CPixelView< PIXEL_TYPE > & rhs,
fract8 amountOfOverlay )
inline

Destructively blend another set of LEDs into this one.

Parameters
rhsthe set of LEDs to blend into this set
amountOfOverlaythe fraction of each color in the other set to blend in
See also
nblend(CRGB&, const CRGB&, fract8)

Definition at line 355 of file pixelset.h.

355{ for(iterator pixel = begin(), rhspixel = rhs.begin(), _end = end(), rhs_end = rhs.end(); (pixel != _end) && (rhspixel != rhs_end); ++pixel, ++rhspixel) { FUNCTION_NBLEND((*pixel), (*rhspixel), amountOfOverlay); } 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
#define FUNCTION_NBLEND(a, b, c)
Definition pixelset.h:21