|
FastLED 3.10.6
|
A linear flux scalar in s16.16.
Deliberately a single scalar for every channel rather than a per-channel array: a chromaticity-changing rescale cannot be expressed through this type at all, which is how C4's "chromaticity preserved by construction" is enforced rather than merely tested.
Definition at line 21 of file flux_scalar.h.
#include <flux_scalar.h>
Public Member Functions | |
| FluxScalar | composedWith (FluxScalar other) const FL_NO_EXCEPT |
| Multiplicative composition, commutative: combining brightness and the limiter in either order gives the same scalar, which is all C4 needs. | |
| i32 | rawQ16 () const FL_NO_EXCEPT |
Static Public Member Functions | |
| static FluxScalar | fromBrightness (u8 brightness) FL_NO_EXCEPT |
setBrightness(b) as the linear flux scalar b/255. | |
| static FluxScalar | fromRawQ16 (i32 raw) FL_NO_EXCEPT |
| A limiter fraction already in s16.16, clamped to [0, 1]. | |
| static FluxScalar | unity () FL_NO_EXCEPT |
| Identity. Drives pass through unchanged. | |
Private Member Functions | |
| FluxScalar (i32 raw) FL_NO_EXCEPT | |
Private Attributes | |
| i32 | mRawQ16 |