FastLED 3.10.8
Loading...
Searching...
No Matches

◆ rescaleNoiseValue16()

FASTLED_FORCE_INLINE u16 fl::rescaleNoiseValue16 ( u16 raw_value)

Rescale raw inoise16() output to full 16-bit range [0, 65535] Curries in the global NOISE16_EXTENT_MIN/MAX extents for clean, reusable rescaling.

Parameters
raw_valueRaw noise value from inoise16()
Returns
Rescaled value spanning the full 16-bit range (0-65535)

Definition at line 22 of file noise.cpp.hpp.

22 {
24 u16(0), u16(65535));
25}
FASTLED_FORCE_INLINE U map_range_clamped(T value, T in_min, T in_max, U out_min, U out_max) FL_NO_EXCEPT
Definition math.h:194
constexpr u16 NOISE16_EXTENT_MAX
Definition noise.h:24
constexpr u16 NOISE16_EXTENT_MIN
Observed min/max extents for inoise16() output.
Definition noise.h:23

References FASTLED_FORCE_INLINE, FL_NO_EXCEPT, map_range_clamped(), NOISE16_EXTENT_MAX, and NOISE16_EXTENT_MIN.

Referenced by noiseCylinderCRGB(), noiseCylinderHSV16(), noiseRingCRGB(), and noiseRingHSV16().

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