MCPcopy Create free account
hub / github.com/FastLED/FastLED / native_single_identity

Function native_single_identity

src/fl/gfx/rgbw_colorimetric.cpp.hpp:299–306  ·  view source on GitHub ↗

Native single-axis authority. For true native input primaries, a pure R/G/B source coordinate is already a request for that exact LED channel. Do not route it through RGW/RBW/BGW or W/LP paths, since that can introduce W or another primary due to white-point/source-matrix differences.

Source from the content-addressed store, hash-verified

297// Do not route it through RGW/RBW/BGW or W/LP paths, since that can introduce
298// W or another primary due to white-point/source-matrix differences.
299static bool native_single_identity(float s_r, float s_g, float s_b,
300 float out[4]) FL_NOEXCEPT {
301 out[0] = fl::clamp(s_r, 0.0f, 1.0f);
302 out[1] = fl::clamp(s_g, 0.0f, 1.0f);
303 out[2] = fl::clamp(s_b, 0.0f, 1.0f);
304 out[3] = 0.0f;
305 return true;
306}
307
308// Solve a target XYZ using only a requested physical channel set.
309//

Callers 3

solve_strict_subgamutFunction · 0.85
solve_wx_lp_legacyFunction · 0.85
solve_wx_overdriveFunction · 0.85

Calls 1

clampFunction · 0.85

Tested by

no test coverage detected