FastLED 3.10.6
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)

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

113 {
114 (void)w_color_temperature;
115 *out_r = scale8(r, r_scale);
116 *out_g = scale8(g, g_scale);
117 *out_b = scale8(b, b_scale);
118 *out_w = 0;
119}
InputGamut g
Definition rgbw.h:124

References g.

Referenced by rgb_2_rgbw().

+ Here is the caller graph for this function: