FastLED 3.10.8
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 344 of file options.h.

344 {
345 auto* p = mWhiteCfg.ptr<Rgbw>();
346 return p != nullptr && p->active();
347 }
fl::variant< fl::Empty, Rgbw, Rgbww > mWhiteCfg
White-channel selection (variant): Empty = plain RGB, Rgbw = 4-channel, Rgbww = 5-channel.
Definition options.h:99

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

+ Here is the call graph for this function: