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 289 of file FastLED.cpp.

289 {
290 CLEDController *pCur = CLEDController::head();
291 while(pCur) {
292 pCur->setCorrection(correction);
293 pCur = pCur->next();
294 }
295}
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: