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

◆ getAdjustment()

CRGB fl::CLEDController::getAdjustment ( fl::u8 scale)
inline

Get the combined brightness/color adjustment for this controller.

Parameters
scalethe brightness scale to get the correction for
Returns
a CRGB object representing the total adjustment, including color correction and color temperature

Definition at line 369 of file cled_controller.h.

369 {
370 return CRGB::computeAdjustment(scale, mSettings.mCorrection, mSettings.mTemperature);
371 }
fl::UISlider scale("Scale", 4,.1, 4,.1)
ChannelOptions mSettings
Optional channel settings (correction, temperature, dither, rgbw, affinity)
static CRGB computeAdjustment(u8 scale, const CRGB &colorCorrection, const CRGB &colorTemperature) FL_NOEXCEPT
Calculates the combined color adjustment to the LEDs at a given scale, color correction,...
Definition crgb.cpp.hpp:29

References fl::CRGB::computeAdjustment(), FL_NOEXCEPT, mSettings, and scale.

Referenced by getAdjustmentData().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: