FastLED 3.10.6
Loading...
Searching...
No Matches

◆ fromRawQ16()

FluxScalar fl::FluxScalar::fromRawQ16 ( i32 raw)
static

A limiter fraction already in s16.16, clamped to [0, 1].

Definition at line 24 of file flux_scalar.cpp.hpp.

24 {
25 if (raw < 0) {
26 raw = 0;
27 } else if (raw > kUnityQ16) {
28 raw = kUnityQ16;
29 }
30 return FluxScalar(raw);
31}
FluxScalar(i32 raw) FL_NO_EXCEPT

References FluxScalar(), and fl::FL_NO_EXCEPT.

Referenced by fl::anonymous_namespace{pipeline_binding.cpp.hpp}::makeColorPipelineIterator().

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