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

◆ software_gamma()

CRGB software_gamma ( const CRGB & in)

Definition at line 50 of file Apa102HD.ino.

50 {
51 CRGB out;
52 // dim8_raw are the old gamma correction functions.
53 out.r = dim8_raw(in.r);
54 out.g = dim8_raw(in.g);
55 out.b = dim8_raw(in.b);
56 return out;
57}
LIB8STATIC uint8_t dim8_raw(uint8_t x)
Adjust a scaling value for dimming.
Definition scale8.h:703
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:54

References dim8_raw().

Referenced by loop().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: