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

◆ napplyGamma_video() [2/2]

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::napplyGamma_video ( float gammaR,
float gammaG,
float gammaB )
inline

Destructively applies a gamma adjustment to all LEDs.

Parameters
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
See also
::napplyGamma_video(CRGB&, float, float, float)

Definition at line 430 of file pixelset.h.

430 {
431 if(dir >= 0) {
433 } else {
435 }
436 return *this;
437 }
PIXEL_TYPE *const leds
pointer to the LED data
Definition pixelset.h:107
const fl::i8 dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition pixelset.h:104
const int len
length of the LED data, in PIXEL_TYPE units.
Definition pixelset.h:105
Represents a view/window into a set of LED pixels, providing array-like access and rich color operati...
Definition pixelset.h:102
#define FUNCTION_NAPPLY_GAMMA_RGB(a, b, c, d, e)
Definition pixelset.h:16