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

◆ applyGamma_video() [1/3]

CRGB applyGamma_video ( const CRGB & orig,
float gamma )

Applies a gamma adjustment to a color.

Parameters
origthe color to apply an adjustment to
gammathe gamma value to apply
Returns
copy of the CRGB object with gamma adjustment applied

Definition at line 1408 of file colorutils.cpp.

1409{
1410 CRGB adj;
1411 adj.r = applyGamma_video( orig.r, gamma);
1412 adj.g = applyGamma_video( orig.g, gamma);
1413 adj.b = applyGamma_video( orig.b, gamma);
1414 return adj;
1415}
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: