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

◆ nblend() [2/2]

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

Destructively modifies all LEDs, blending in a given fraction of an overlay color.

Parameters
overlaythe color to blend in
amountOfOverlaythe fraction of overlay to blend in
See also
nblend(CRGB&, const CRGB&, fract8)

Definition at line 357 of file pixelset.h.

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