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

◆ setCorrection()

void CFastLED::setCorrection ( const struct CRGB & correction)

Set a global color correction.

Sets the color correction for all added led strips, overriding whatever previous color correction those controllers may have had.

Parameters
correctionA CRGB structure describin the color correction.

Definition at line 273 of file FastLED.cpp.

273 {
274 CLEDController *pCur = CLEDController::head();
275 while(pCur) {
276 pCur->setCorrection(correction);
277 pCur = pCur->next();
278 }
279}
CLEDController * next()
Get the next controller in the linked list after this one.
CLEDController & setCorrection(CRGB correction)
The color corrction to use for this controller, expressed as a CRGB object.
static CLEDController * head()
Get the first LED controller in the linked list of controllers.

References CLEDController::head(), CLEDController::next(), and CLEDController::setCorrection().

+ Here is the call graph for this function: