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

◆ isRgbw()

bool fl::ChannelOptions::isRgbw ( ) const
inline

True if this channel emits 4-channel RGBW.

Requires both the Rgbw variant alternative AND an active mode — a stored RgbwInvalid::value() does not count, mirroring the legacy Rgbw::active() semantics.

Definition at line 70 of file options.h.

70 {
71 auto* p = mWhiteCfg.ptr<Rgbw>();
72 return p != nullptr && p->active();
73 }
fl::variant< fl::Empty, Rgbw, Rgbww > mWhiteCfg
White-channel selection (variant): Empty = plain RGB, Rgbw = 4-channel, Rgbww = 5-channel.
Definition options.h:49

References fl::Rgbw::active(), FL_NOEXCEPT, and mWhiteCfg.

+ Here is the call graph for this function: