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

◆ setPowerScalingExponent()

void CFastLED::setPowerScalingExponent ( float exponent)
inline

Set a non-linear brightness-to-power response exponent.

Parameters
exponent1.0 = linear (default), values below 1.0 model higher power at mid brightness
Note
Convenience wrapper: equivalent to setting model.exponent and calling setPowerModel. Prefer passing the exponent directly via PowerModelRGB(r, g, b, d, e) to set both in one step.
exponent <= 0 or values within 1e-4 of 1.0 fall back to linear (identity tables), ignoring the supplied value.
This affects power estimation and limiting only, not rendered brightness.
Only enabled when SKETCH_HAS_LARGE_MEMORY==1; smaller-memory targets keep legacy linear behavior.

Definition at line 1486 of file FastLED.h.

1486 {
1488 }
void set_power_scaling_exponent(float exponent)
Set a non-linear brightness-to-power response exponent.

References set_power_scaling_exponent().

+ Here is the call graph for this function: