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

◆ rgbw()

Rgbw fl::ChannelOptions::rgbw ( ) const
inline
Returns
The active Rgbw if mWhiteCfg holds one, else RgbwInvalid::value(). Backward-compat shim for code paths that pre-date the variant migration.

Definition at line 319 of file options.h.

319 {
320 if (auto* p = mWhiteCfg.ptr<Rgbw>()) return *p;
321 return RgbwInvalid::value();
322 }
fl::variant< fl::Empty, Rgbw, Rgbww > mWhiteCfg
White-channel selection (variant): Empty = plain RGB, Rgbw = 4-channel, Rgbww = 5-channel.
Definition options.h:91
static Rgbw value() FL_NO_EXCEPT
Definition rgbw.h:253

References fl::FL_NO_EXCEPT, mWhiteCfg, and fl::RgbwInvalid::value().

+ Here is the call graph for this function: