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

◆ applyGamma_video() [2/3]

CRGB applyGamma_video ( const CRGB & orig,
float gammaR,
float gammaG,
float gammaB )

Applies a gamma adjustment to a color.

Parameters
origthe color to apply an adjustment to
gammaRthe gamma value to apply to the CRGB::red channel
gammaGthe gamma value to apply to the CRGB::green channel
gammaBthe gamma value to apply to the CRGB::blue channel
Returns
copy of the CRGB object with gamma adjustment applied

Definition at line 1417 of file colorutils.cpp.

1418{
1419 CRGB adj;
1420 adj.r = applyGamma_video( orig.r, gammaR);
1421 adj.g = applyGamma_video( orig.g, gammaG);
1422 adj.b = applyGamma_video( orig.b, gammaB);
1423 return adj;
1424}
uint8_t applyGamma_video(uint8_t brightness, float gamma)
Applies a gamma adjustment to a color channel.
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54

References applyGamma_video().

+ Here is the call graph for this function: