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

◆ napplyGamma_video() [1/2]

template<class PIXEL_TYPE>
CPixelView & CPixelView< PIXEL_TYPE >::napplyGamma_video ( float gamma)
inline

Destructively applies a gamma adjustment to all LEDs.

Parameters
gammathe gamma value to apply
See also
napplyGamma_video(CRGB&, float)

Definition at line 424 of file pixelset.h.

424 {
425 if(dir >= 0) {
427 } else {
429 }
430 return *this;
431 }
PIXEL_TYPE *const leds
pointer to the LED data
Definition pixelset.h:115
const int8_t dir
direction of the LED data, either 1 or -1. Determines how the pointer is incremented.
Definition pixelset.h:112
const int len
length of the LED data, in PIXEL_TYPE units.
Definition pixelset.h:113
Represents a view/window into a set of LED pixels, providing array-like access and rich color operati...
Definition pixelset.h:110
#define FUNCTION_NAPPLY_GAMMA(a, b, c)
Definition pixelset.h:15