MCPcopy Create free account
hub / github.com/FastLED/FastLED / rgbw

Method rgbw

src/fl/channels/options.h:55–58  ·  view source on GitHub ↗

@return The active Rgbw if mWhiteCfg holds one, else RgbwInvalid::value(). Backward-compat shim for code paths that pre-date the variant migration.

Source from the content-addressed store, hash-verified

53 /// @return The active Rgbw if mWhiteCfg holds one, else RgbwInvalid::value().
54 /// Backward-compat shim for code paths that pre-date the variant migration.
55 Rgbw rgbw() const FL_NOEXCEPT {
56 if (auto* p = mWhiteCfg.ptr<Rgbw>()) return *p;
57 return RgbwInvalid::value();
58 }
59
60 /// @return The active Rgbww if mWhiteCfg holds one, else RgbwwInvalid::value().
61 Rgbww rgbww() const FL_NOEXCEPT {

Callers 2

getRgbwMethod · 0.80
showPixelsMethod · 0.80

Calls 1

valueFunction · 0.50

Tested by

no test coverage detected