FastLED 3.9.15
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 21 of file noise.cpp.hpp.

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

References FASTLED_FORCE_INLINE, 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: