FastLED 3.9.15
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)
@ RGB
Red, Green, Blue (0012)
Definition eorder.h:14

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

98 {
99 (void)w_color_temperature;
100 *out_r = scale8(r, r_scale);
101 *out_g = scale8(g, g_scale);
102 *out_b = scale8(b, b_scale);
103 *out_w = min3(*out_r, *out_g, *out_b);
104}

Referenced by rgb_2_rgbw().

+ Here is the caller graph for this function: