FastLED 3.9.15
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages

◆ getAdjustment()

CRGB CLEDController::getAdjustment ( uint8_t 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 274 of file cled_controller.h.

274 {
276 }
UISlider scale("Scale", 1.0f, 0.0f, 1.0f, 0.01f)
CRGB m_ColorCorrection
CRGB object representing the color correction to apply to the strip on show()
CRGB m_ColorTemperature
CRGB object representing the color temperature to apply to the strip on show()
static CRGB computeAdjustment(uint8_t scale, const CRGB &colorCorrection, const CRGB &colorTemperature)
Calculates the combined color adjustment to the LEDs at a given scale, color correction,...
Definition crgb.cpp:29

References CRGB::computeAdjustment(), m_ColorCorrection, m_ColorTemperature, and scale.

Referenced by getAdjustmentData().

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