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

◆ nblend() [2/4]

void nblend ( CHSV * existing,
const CHSV * overlay,
uint16_t count,
fract8 amountOfOverlay,
TGradientDirectionCode directionCode = SHORTEST_HUES )

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
directionCodethe direction to travel around the color wheel

Definition at line 414 of file colorutils.cpp.

415{
416 if(existing == overlay) return;
417 for( uint16_t i = count; i; --i) {
418 nblend( *existing, *overlay, amountOfOverlay, directionCode);
419 ++existing;
420 ++overlay;
421 }
422}
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: