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

◆ clampChromaFactor()

i32 fl::anonymous_namespace{gamut_map.cpp.hpp}::clampChromaFactor ( i32 low,
i32 high )

The target's chroma clamped into [low, high], in factor space.

Definition at line 277 of file gamut_map.cpp.hpp.

277 {
278 i32 factor = kGamutFullDrive;
279 if (factor < low) {
280 factor = low;
281 }
282 if (factor > high) {
283 factor = high;
284 }
285 return factor;
286}
constexpr i32 kGamutFullDrive
Full drive, as an s16.16 raw value.

References clampChromaFactor(), fl::FL_NO_EXCEPT, and kGamutFullDrive.

Referenced by clampChromaFactor().

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