FastLED 3.9.15
Loading...
Searching...
No Matches

◆ rgb_2_rgbww_colorimetric()

void fl::rgb_2_rgbww_colorimetric ( const Rgbww & cfg,
fl::u8 r,
fl::u8 g,
fl::u8 b,
fl::u8 r_scale,
fl::u8 g_scale,
fl::u8 b_scale,
fl::u8 * out_r,
fl::u8 * out_g,
fl::u8 * out_b,
fl::u8 * out_ww,
fl::u8 * out_wc )

Colorimetric strict sub-gamut solver for RGBWW (gist sec 5 + sec 11-12, using solve_rgbcct from rgbw_colorimetric.h).

Requires FASTLED_RGBW_COLORIMETRIC; stub emits FL_WARN_ONCE + zeros otherwise.

Definition at line 366 of file rgbww.cpp.hpp.

370 {
371 (void)cfg; (void)r; (void)g; (void)b;
372 (void)r_scale; (void)g_scale; (void)b_scale;
373#ifndef FASTLED_SUPPRESS_RGBWW_FALLBACK_WARNING
374 FL_WARN_ONCE("RGBWW: kRGBWWColorimetric requires FASTLED_RGBW_COLORIMETRIC=1 "
375 "(the math library that provides solve_rgbcct). Outputting zeros.");
376#endif
377 zero_out(out_r, out_g, out_b, out_ww, out_wc);
378}
#define FL_WARN_ONCE(X)
Definition log.h:278

References FL_NOEXCEPT, and FL_WARN_ONCE.