FastLED
3.10.8
Loading...
Searching...
No Matches
◆
count_active_channels()
int fl::colorimetric_detail::count_active_channels
(
float
s_r
,
float
s_g
,
float
s_b
)
inline
Definition at line
130
of file
rgbw_colorimetric.h
.
130
{
131
// 1 / 65535 — matches the 16-bit verifier precision used in the
132
// reference math model; anything below this is below noise floor.
133
constexpr
float
kTopoEps = 1.0f / 65535.0f;
134
int
n = 0;
135
if
(s_r > kTopoEps) ++n;
136
if
(s_g > kTopoEps) ++n;
137
if
(s_b > kTopoEps) ++n;
138
return
n;
139
}
References
fl::FL_NO_EXCEPT
.
fl
colorimetric_detail
Generated on Sun Oct 18 2026 00:57:11 for FastLED by
1.13.2