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

◆ rgb_2_rgbw() [2/3]

FASTLED_FORCE_INLINE void fl::rgb_2_rgbw ( RGBW_MODE mode,
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 447 of file rgbw.h.

449 {
450 // Plain value: this overload converts directly, it must not install the
451 // PixelIterator hook (or pay its call) per pixel (#4795).
453 cfg.white_color_temp = w_color_temperature;
454 cfg.rgbw_mode = mode;
455 rgb_2_rgbw(cfg, r, g, b, r_scale, g_scale, b_scale, out_r, out_g, out_b,
456 out_w);
457}
Tag for constructing an inactive Rgbw without linking the RGBW encoder.
Definition rgbw.h:213
FASTLED_FORCE_INLINE void rgb_2_rgbw(const Rgbw &cfg, 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 one of the functions.
Definition rgbw.h:406
InputGamut g
Definition rgbw.h:125
u16 white_color_temp
Definition rgbw.h:250

References FL_NO_EXCEPT, g, rgb_2_rgbw(), and fl::Rgbw::white_color_temp.

+ Here is the call graph for this function: