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

256 {
257 CLEDController *pCur = CLEDController::head();
258 while(pCur) {
259 pCur->setCorrection(correction);
260 pCur = pCur->next();
261 }
262}
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: