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

◆ napplyGamma_video() [4/4]

void napplyGamma_video ( CRGB * rgbarray,
uint16_t count,
float gammaR,
float gammaG,
float gammaB )

Destructively applies a gamma adjustment to a color array.

Parameters
rgbarraypointer to an LED array to apply an adjustment to (modified in place)
countthe number of LEDs to modify
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 1445 of file colorutils.cpp.

1446{
1447 for( uint16_t i = 0; i < count; ++i) {
1448 rgbarray[i] = applyGamma_video( rgbarray[i], gammaR, gammaG, gammaB);
1449 }
1450}
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: