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

◆ blend() [1/4]

CHSV blend ( const CHSV & p1,
const CHSV & p2,
fract8 amountOfP2,
TGradientDirectionCode directionCode = SHORTEST_HUES )

Computes a new color blended some fraction of the way between two other colors.

Parameters
p1the first color to blend
p2the second color to blend
amountOfP2the fraction of p2 to blend into p1
directionCodethe direction to travel around the color wheel

Definition at line 424 of file colorutils.cpp.

425{
426 CHSV nu(p1);
427 nblend( nu, p2, amountOfP2, directionCode);
428 return nu;
429}
CRGB & nblend(CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay)
Destructively modifies one color, blending in a given fraction of an overlay color.
Representation of an HSV pixel (hue, saturation, value (aka brightness)).
Definition chsv.h:16

References nblend().

+ Here is the call graph for this function: