FastLED 3.10.6
Loading...
Searching...
No Matches

◆ xyY_to_XYZ()

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

Definition at line 57 of file colorimetric_response.h.

57 {
58 if (y < 1e-12f) {
59 out[0] = out[1] = out[2] = 0.0f;
60 return;
61 }
62 const float inv_y = 1.0f / y;
63 out[0] = x * Y * inv_y;
64 out[1] = Y;
65 out[2] = (1.0f - x - y) * Y * inv_y;
66}

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

Referenced by build_rgb_colorimetric_cache(), and build_source_matrix().

+ Here is the caller graph for this function: