FastLED 3.10.8
Loading...
Searching...
No Matches

◆ rgb_2_rgbw_user_function()

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

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

184 {
186 if (fn == nullptr) {
187 fn = rgb_2_rgbw_exact;
188 }
189 fn(w_color_temperature, r, g, b, r_scale, g_scale, b_scale,
190 out_r, out_g, out_b, out_w);
191}
static T & instance() FL_NO_EXCEPT
Definition singleton.h:41
void rgb_2_rgbw_exact(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) FL_NO_EXCEPT
Converts RGB to RGBW using a color transfer method from saturated color channels to white.
Definition rgbw.cpp.hpp:84
void(* rgb_2_rgbw_function)(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)
Definition rgbw.h:312
InputGamut g
Definition rgbw.h:125

References FL_NO_EXCEPT, g, fl::Singleton< T, N >::instance(), and rgb_2_rgbw_exact().

Referenced by rgb_2_rgbw().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: