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

◆ hermite_basis()

void fl::colorimetric_detail::hermite_basis ( float t,
float out[4] )
inline

Definition at line 319 of file rgbw_colorimetric.h.

319 {
320 const float t2 = t * t;
321 const float t3 = t2 * t;
322 out[0] = 2.0f * t3 - 3.0f * t2 + 1.0f;
323 out[1] = -2.0f * t3 + 3.0f * t2;
324 out[2] = t3 - 2.0f * t2 + t;
325 out[3] = t3 - t2;
326}

References FL_NOEXCEPT, and fl::t.