FastLED 3.9.15
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 399 of file FastLED.cpp.hpp.

399 {
401 while(pCur) {
402 pCur->setCorrection(correction);
403 pCur = pCur->next();
404 }
405}
CLEDController & setCorrection(CRGB correction) FL_NOEXCEPT
The color corrction to use for this controller, expressed as a CRGB object.
CLEDController * next() FL_NOEXCEPT
Get the next controller in the linked list after this one.
static CLEDController * head() FL_NOEXCEPT
Get the first LED controller in the linked list of controllers.
fl::CLEDController CLEDController

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

+ Here is the call graph for this function: