FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ rgb_2_rgbw_null_white_pixel()

void rgb_2_rgbw_null_white_pixel ( uint16_t w_color_temperature,
uint8_t r,
uint8_t g,
uint8_t b,
uint8_t r_scale,
uint8_t g_scale,
uint8_t b_scale,
uint8_t * out_r,
uint8_t * out_g,
uint8_t * out_b,
uint8_t * out_w )

Converts RGB to RGBW with the W channel set to black, always.

RGB(255, 255, 255) -> RGBW(255, 255, 255, 0)
@ RGB
Red, Green, Blue (0012)
Definition eorder.h:15

Definition at line 66 of file rgbw.cpp.

70 {
71 (void)w_color_temperature;
72 *out_r = scale8(r, r_scale);
73 *out_g = scale8(g, g_scale);
74 *out_b = scale8(b, b_scale);
75 *out_w = 0;
76}
LIB8STATIC_ALWAYS_INLINE uint8_t scale8(uint8_t i, fract8 scale)
Scale one byte by a second one, which is treated as the numerator of a fraction whose denominator is ...
Definition scale8.h:34

References scale8().

Referenced by rgb_2_rgbw().

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