35 u32 nx =
static_cast<u32
>((
x + 1.0f) * 0.5f * radius * 0xffff);
36 u32 ny =
static_cast<u32
>((
y + 1.0f) * 0.5f * radius * 0xffff);
49 return HSV16(h, s, v);
57 u8 h = (hsv16.
h + 128) >> 8;
58 u8 s = (hsv16.
s + 128) >> 8;
59 u8 v = (hsv16.
v + 128) >> 8;
71 u32 nx =
static_cast<u32
>((
x + 1.0f) * 0.5f * radius * 0xffff);
72 u32 ny =
static_cast<u32
>((
y + 1.0f) * 0.5f * radius * 0xffff);
109 u32 nx =
static_cast<u32
>((
x + 1.0f) * 0.5f * radius * 0xffff);
110 u32 ny =
static_cast<u32
>((
y + 1.0f) * 0.5f * radius * 0xffff);
111 u32 nz =
static_cast<u32
>((
z + 1.0f) * 0.5f * radius * 0xffff);
119 return HSV16(h, s, v);
127 u8 h = (hsv16.
h + 128) >> 8;
128 u8 s = (hsv16.
s + 128) >> 8;
129 u8 v = (hsv16.
v + 128) >> 8;
131 return CHSV(h, s, v);
148 u32 nx =
static_cast<u32
>((
x + 1.0f) * 0.5f * radius * 0xffff);
149 u32 ny =
static_cast<u32
>((
y + 1.0f) * 0.5f * radius * 0xffff);
150 u32 nz =
static_cast<u32
>((
z + 1.0f) * 0.5f * radius * 0xffff);
158 u8 r = fl::int_scale<u16, u8>(r16);
159 u8 g = fl::int_scale<u16, u8>(g16);
160 u8 b = fl::int_scale<u16, u8>(b16);
162 return CRGB(r,
g, b);
179 u32 nx =
static_cast<u32
>((
x + 1.0f) * 0.5f * radius * 0xffff);
180 u32 ny =
static_cast<u32
>((
y + 1.0f) * 0.5f * radius * 0xffff);
181 u32 nz =
static_cast<u32
>(
height * radius * 0xffff);
194 return HSV16(h, s, v);
202 u8 h = (hsv16.
h + 128) >> 8;
203 u8 s = (hsv16.
s + 128) >> 8;
204 u8 v = (hsv16.
v + 128) >> 8;
206 return CHSV(h, s, v);
221 u32 nx =
static_cast<u32
>((
x + 1.0f) * 0.5f * radius * 0xffff);
222 u32 ny =
static_cast<u32
>((
y + 1.0f) * 0.5f * radius * 0xffff);
223 u32 nz =
static_cast<u32
>(
height * radius * 0xffff);
237 u8 r = fl::int_scale<u16, u8>(r16);
238 u8 g = fl::int_scale<u16, u8>(g16);
239 u8 b = fl::int_scale<u16, u8>(b16);
241 return CRGB(r,
g, b);
#define FASTLED_FORCE_INLINE
fl::u16 inoise16(fl::u32 x, fl::u32 y, fl::u32 z, fl::u32 t) FL_NO_EXCEPT
Functions to generate noise patterns on rings and spheres.
Internal FastLED header for implementation files.
CRGB noiseCylinderCRGB(float angle, float height, u32 time, float radius) FL_NO_EXCEPT
Generate CRGB noise for a cylinder pattern.
HSV16 noiseCylinderHSV16(float angle, float height, u32 time, float radius) FL_NO_EXCEPT
Cylinder noise functions - sample three z-slices for independent component evolution.
CHSV noiseCylinderHSV8(float angle, float height, u32 time, float radius) FL_NO_EXCEPT
Generate HSV8 (8-bit) noise for a cylinder pattern.
CHSV noiseRingHSV8(float angle, u32 time, float radius) FL_NO_EXCEPT
Generate HSV8 (8-bit) noise for a ring pattern.
CRGB noiseRingCRGB(float angle, u32 time, float radius) FL_NO_EXCEPT
Generate CRGB noise for a ring pattern.
HSV16 noiseRingHSV16(float angle, u32 time, float radius) FL_NO_EXCEPT
Ring noise functions - sample three z-slices for independent component evolution.
CHSV noiseSphereHSV8(float angle, float phi, u32 time, float radius) FL_NO_EXCEPT
Generate HSV8 (8-bit) noise for a sphere pattern.
CRGB noiseSphereCRGB(float angle, float phi, u32 time, float radius) FL_NO_EXCEPT
Generate CRGB noise for a sphere pattern.
HSV16 noiseSphereHSV16(float angle, float phi, u32 time, float radius) FL_NO_EXCEPT
Sphere noise functions - sample three z-slices for independent component evolution.
u8 u8 fract8 blur_amount FL_NO_EXCEPT
float sinf(float value) FL_NO_EXCEPT
fl::u64 time() FL_NO_EXCEPT
Alias for millis64() - returns 64-bit millisecond time.
FASTLED_FORCE_INLINE U map_range_clamped(T value, T in_min, T in_max, U out_min, U out_max) FL_NO_EXCEPT
FASTLED_FORCE_INLINE u16 rescaleNoiseValue16(u16 raw_value) FL_NO_EXCEPT
Rescale raw inoise16() output to full 16-bit range [0, 65535] Curries in the global NOISE16_EXTENT_MI...
constexpr u16 NOISE16_EXTENT_MAX
float cosf(float value) FL_NO_EXCEPT
constexpr u16 NOISE16_EXTENT_MIN
Observed min/max extents for inoise16() output.
Base definition for an LED controller.
Representation of an 8-bit RGB pixel (Red, Green, Blue)