FastLED 3.10.10
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 346 of file options.h.

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

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

+ Here is the call graph for this function: