FastLED 3.9.15
Loading...
Searching...
No Matches

◆ xyY_to_XYZ()

void fl::colorimetric_detail::xyY_to_XYZ ( float x,
float y,
float Y,
float out[3] )
inline

Definition at line 64 of file rgbw_colorimetric.h.

64 {
65 if (y < 1e-12f) {
66 out[0] = out[1] = out[2] = 0.0f;
67 return;
68 }
69 const float inv_y = 1.0f / y;
70 out[0] = x * Y * inv_y;
71 out[1] = Y;
72 out[2] = (1.0f - x - y) * Y * inv_y;
73}

References FL_NOEXCEPT, fl::x, and fl::y.

Referenced by build_source_matrix().

+ Here is the caller graph for this function: