FastLED 3.10.6
Loading...
Searching...
No Matches

◆ rgb_2_rgbw_max_brightness()

void fl::rgb_2_rgbw_max_brightness ( 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 )

The minimum brigthness of the RGB channels is used to set the W channel.

This will allow the max brightness of the led chipset to be used. However the leds will appear over-desaturated in this mode.

RGB(255, 255, 255) -> RGBW(255, 255, 255, 255)
RGB(1, 0, 0) -> RGBW(1, 0, 0, 1)

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

101 {
102 (void)w_color_temperature;
103 *out_r = scale8(r, r_scale);
104 *out_g = scale8(g, g_scale);
105 *out_b = scale8(b, b_scale);
106 *out_w = rgbw_min3(*out_r, *out_g, *out_b);
107}
InputGamut g
Definition rgbw.h:124

References g.

Referenced by rgb_2_rgbw().

+ Here is the caller graph for this function: