FastLED 3.10.6
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 334 of file options.h.

334 {
335 auto* p = mWhiteCfg.ptr<Rgbw>();
336 return p != nullptr && p->active();
337 }
fl::variant< fl::Empty, Rgbw, Rgbww > mWhiteCfg
White-channel selection (variant): Empty = plain RGB, Rgbw = 4-channel, Rgbww = 5-channel.
Definition options.h:91

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

+ Here is the call graph for this function: