FastLED 3.10.6
Loading...
Searching...
No Matches
options.cpp.hpp
Go to the documentation of this file.
1// ok no header - implementation for fl/channels/options.h
2
4
5namespace fl {
6
8#if FL_COLOR_PROFILE_RUNTIME
9 if (!validChromaticity(white)) return false;
10 mColorProfile.mTargetWhite = white;
11 mColorProfile.mHasTargetWhite = true;
12 return true;
13#else
14 FL_UNUSED(white);
15 return false;
16#endif
17}
18
20#if FL_COLOR_PROFILE_RUNTIME
21 return mColorProfile.mTargetWhite;
22#else
23 return Chromaticity();
24#endif
25}
26
28#if FL_COLOR_PROFILE_RUNTIME
29 return mColorProfile.mHasTargetWhite;
30#else
31 return false;
32#endif
33}
34
35} // namespace fl
#define FL_UNUSED(x)
InputGamut g FL_NO_EXCEPT
Definition rgbw.h:121
Base definition for an LED controller.
Definition crgb.hpp:179
static bool validChromaticity(const float xy[2]) FL_NO_EXCEPT
Definition options.h:281
bool hasTargetWhite() const FL_NO_EXCEPT
bool setTargetWhite(Chromaticity white) FL_NO_EXCEPT
Chromaticity targetWhite() const FL_NO_EXCEPT
CIE 1931 xy chromaticity, independent of encoded storage and chipset.