|
FastLED 3.10.6
|
| FluxScalar fl::FluxScalar::composedWith | ( | FluxScalar | other | ) | const |
Multiplicative composition, commutative: combining brightness and the limiter in either order gives the same scalar, which is all C4 needs.
It is NOT associative – Q16 rounding breaks that. With raw values 1, 32768, 32768, (a.composedWith(b)).composedWith(c) is 1 while a.composedWith(b.composedWith(c)) is 0. Compose at most two scalars, or keep wider precision across the chain.
Definition at line 33 of file flux_scalar.cpp.hpp.
References FluxScalar(), fl::FL_NO_EXCEPT, and mRawQ16.
Here is the call graph for this function: