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

◆ rgb_2_rgbw_null_white_pixel()

void fl::rgb_2_rgbw_null_white_pixel ( u16 w_color_temperature,
u8 r,
u8 g,
u8 b,
u8 r_scale,
u8 g_scale,
u8 b_scale,
u8 * out_r,
u8 * out_g,
u8 * out_b,
u8 * 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:14

Definition at line 106 of file rgbw.cpp.hpp.

110 {
111 (void)w_color_temperature;
112 *out_r = scale8(r, r_scale);
113 *out_g = scale8(g, g_scale);
114 *out_b = scale8(b, b_scale);
115 *out_w = 0;
116}

Referenced by rgb_2_rgbw().

+ Here is the caller graph for this function: