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

◆ nblend() [4/4]

void nblend ( CRGB * existing,
const CRGB * overlay,
uint16_t count,
fract8 amountOfOverlay )

Destructively blends a given fraction of a color array into an existing color array.

Parameters
existingthe color array to modify
overlaythe color array to blend into existing
countthe number of colors to process
amountOfOverlaythe fraction of overlay to blend into existing

Definition at line 338 of file colorutils.cpp.

339{
340 for( uint16_t i = count; i; --i) {
341 nblend( *existing, *overlay, amountOfOverlay);
342 ++existing;
343 ++overlay;
344 }
345}
CRGB & nblend(CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay)
Destructively modifies one color, blending in a given fraction of an overlay color.

References nblend().

+ Here is the call graph for this function: