FastLED
3.9.15
Loading...
Searching...
No Matches
◆
is_native_input_gamut()
bool fl::colorimetric_detail::is_native_input_gamut
(
const
DiodeProfile
&
p
)
inline
Definition at line
190
of file
rgbw_colorimetric.h
.
190
{
191
constexpr
float
kPrimaryEps = 1e-6f;
192
auto
close = [](
const
float
a[2],
const
float
b[2])
FL_NOEXCEPT
{
193
const
float
dx = a[0] - b[0];
194
const
float
dy = a[1] - b[1];
195
return
(dx * dx + dy * dy) < kPrimaryEps;
196
};
197
return
close(p.
input_xy_r
, p.
xy_r
)
198
&& close(p.
input_xy_g
, p.
xy_g
)
199
&& close(p.
input_xy_b
, p.
xy_b
);
200
}
fl::DiodeProfile::input_xy_b
float input_xy_b[2]
Definition
rgbw.h:68
fl::DiodeProfile::xy_g
float xy_g[2]
Definition
rgbw.h:56
fl::DiodeProfile::input_xy_r
float input_xy_r[2]
Definition
rgbw.h:66
fl::DiodeProfile::xy_b
float xy_b[2]
Definition
rgbw.h:57
fl::DiodeProfile::input_xy_g
float input_xy_g[2]
Definition
rgbw.h:67
fl::DiodeProfile::xy_r
float xy_r[2]
Definition
rgbw.h:55
FL_NOEXCEPT
#define FL_NOEXCEPT
References
FL_NOEXCEPT
.
fl
colorimetric_detail
Generated on Tue Jun 16 2026 00:07:09 for FastLED by
1.13.2