FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ napplyGamma_video() [2/4]

CRGB & napplyGamma_video ( CRGB & rgb,
float gammaR,
float gammaG,
float gammaB )

Destructively applies a gamma adjustment to a color.

Parameters
rgbthe color to apply an adjustment to (modified in place)
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

Definition at line 1432 of file colorutils.cpp.

1433{
1434 rgb = applyGamma_video( rgb, gammaR, gammaG, gammaB);
1435 return rgb;
1436}
uint8_t applyGamma_video(uint8_t brightness, float gamma)
Applies a gamma adjustment to a color channel.

References applyGamma_video().

+ Here is the call graph for this function: