FastLED 3.10.8
Loading...
Searching...
No Matches

◆ setCorrection()

void CFastLED::setCorrection ( const 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 545 of file FastLED.cpp.hpp.

545 {
547 while(pCur) {
548 pCur->setCorrection(correction);
549 pCur = pCur->next();
550 }
551}
static CLEDController * head() FL_NO_EXCEPT
Get the first LED controller in the linked list of controllers.
CLEDController * next() FL_NO_EXCEPT
Get the next controller in the linked list after this one.
CLEDController & setCorrection(CRGB correction) FL_NO_EXCEPT
The color corrction to use for this controller, expressed as a CRGB object.
fl::CLEDController CLEDController

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

+ Here is the call graph for this function: