25 #if defined(NO_CORRECTION) && (NO_CORRECTION==1)
26 return CRGB(scale,scale,scale);
30 for(uint8_t i = 0; i < 3; ++i) {
31 uint8_t cc = colorCorrection.
raw[i];
32 uint8_t ct = colorTemperature.
raw[i];
33 if(cc > 0 && ct > 0) {
36 uint32_t work = (((uint16_t)cc)+1);
37 work *= (((uint16_t)ct)+1);
40 adj.
raw[i] = work & 0xFF;
central include file for FastLED, defines the CFastLED class/object
Defines the red, green, and blue (RGB) pixel struct.
uint8_t fract8
ANSI: unsigned short _Fract.
LIB8STATIC uint8_t blend8(uint8_t a, uint8_t b, uint8_t amountOfB)
Blend a variable proportion (0-255) of one byte to another.
Fast, efficient 8-bit math functions specifically designed for high-performance LED programming.
Implements the FastLED namespace macros.
#define FASTLED_NAMESPACE_END
End of the FastLED namespace.
#define FASTLED_NAMESPACE_BEGIN
Start of the FastLED namespace.
Representation of an RGB pixel (Red, Green, Blue)
FASTLED_FORCE_INLINE CRGB()=default
Default constructor.
uint8_t raw[3]
Access the red, green, and blue data as an array.
uint8_t r
Red channel value.
static CRGB computeAdjustment(uint8_t scale, const CRGB &colorCorrection, const CRGB &colorTemperature)
Calculates the combined color adjustment to the LEDs at a given scale, color correction,...
uint8_t g
Green channel value.
uint8_t b
Blue channel value.