FastLED 3.10.8
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 110 of file rgbw.cpp.hpp.

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

References FL_NO_EXCEPT, and g.

Referenced by fl::PixelIterator::loadAndScaleRGBW(), and rgb_2_rgbw().

+ Here is the caller graph for this function: