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

◆ rgb_2_rgbw_colorimetric() [2/2]

void fl::rgb_2_rgbw_colorimetric ( 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 637 of file rgbw.cpp.hpp.

640 {
641#ifndef FASTLED_SUPPRESS_COLORIMETRIC_FALLBACK_WARNING
642 FL_WARN_ONCE("RGBW: kRGBWColorimetric requested but FASTLED_RGBW_COLORIMETRIC is not defined — falling back to kRGBWExactColors. Define FASTLED_RGBW_COLORIMETRIC=1 to enable the colorimetric path.");
643#endif
644 rgb_2_rgbw_exact(w_color_temperature, r, g, b, r_scale, g_scale, b_scale,
645 out_r, out_g, out_b, out_w);
646}
#define FL_WARN_ONCE(...)
Definition log.h:442
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)
Converts RGB to RGBW using a color transfer method from saturated color channels to white.
Definition rgbw.cpp.hpp:83
InputGamut g
Definition rgbw.h:124

References FL_NO_EXCEPT, FL_WARN_ONCE, g, and rgb_2_rgbw_exact().

Referenced by rgb_2_rgbw(), and rgb_2_rgbw_colorimetric().

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