FastLED 3.9.15
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 55 of file options.h.

55 {
56 if (auto* p = mWhiteCfg.ptr<Rgbw>()) return *p;
57 return RgbwInvalid::value();
58 }
fl::variant< fl::Empty, Rgbw, Rgbww > mWhiteCfg
White-channel selection (variant): Empty = plain RGB, Rgbw = 4-channel, Rgbww = 5-channel.
Definition options.h:49
static Rgbw value() FL_NOEXCEPT
Definition rgbw.h:203

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

+ Here is the call graph for this function: