FastLED 3.9.15
Loading...
Searching...
No Matches
noise.h
Go to the documentation of this file.
1#pragma once
2
3#include "fl/gfx/hsv.h"
4#include "fl/gfx/hsv16.h"
5#include "chsv.h"
6#include "crgb.h"
7
10
11namespace fl {
12
22constexpr u16 NOISE16_EXTENT_MIN = 9000;
23constexpr u16 NOISE16_EXTENT_MAX = 59500;
24
30
36
44fl::HSV16 noiseRingHSV16(float angle, u32 time, float radius = 1.0f);
45
52CHSV noiseRingHSV8(float angle, u32 time, float radius = 1.0f);
53
61CRGB noiseRingCRGB(float angle, u32 time, float radius = 1.0f);
62
64
65
71
80fl::HSV16 noiseSphereHSV16(float angle, float phi, u32 time, float radius = 1.0f);
81
89CHSV noiseSphereHSV8(float angle, float phi, u32 time, float radius = 1.0f);
90
99CRGB noiseSphereCRGB(float angle, float phi, u32 time, float radius = 1.0f);
100
102
103
109
119fl::HSV16 noiseCylinderHSV16(float angle, float height, u32 time, float radius = 1.0f);
120
128CHSV noiseCylinderHSV8(float angle, float height, u32 time, float radius = 1.0f);
129
139CRGB noiseCylinderCRGB(float angle, float height, u32 time, float radius = 1.0f);
140
142
144
145} // namespace fl
Defines the hue, saturation, and value (HSV) pixel struct.
CRGB noiseCylinderCRGB(float angle, float height, u32 time, float radius)
Generate CRGB noise for a cylinder pattern.
CHSV noiseCylinderHSV8(float angle, float height, u32 time, float radius)
Generate HSV8 (8-bit) noise for a cylinder pattern.
HSV16 noiseCylinderHSV16(float angle, float height, u32 time, float radius)
Cylinder noise functions - sample three z-slices for independent component evolution.
fl::hsv8 CHSV
Definition chsv.h:11
CHSV noiseRingHSV8(float angle, u32 time, float radius)
Generate HSV8 (8-bit) noise for a ring pattern.
Definition noise.cpp.hpp:51
HSV16 noiseRingHSV16(float angle, u32 time, float radius)
Ring noise functions - sample three z-slices for independent component evolution.
Definition noise.cpp.hpp:27
CRGB noiseRingCRGB(float angle, u32 time, float radius)
Generate CRGB noise for a ring pattern.
Definition noise.cpp.hpp:63
HSV16 noiseSphereHSV16(float angle, float phi, u32 time, float radius)
Sphere noise functions - sample three z-slices for independent component evolution.
Definition noise.cpp.hpp:94
CHSV noiseSphereHSV8(float angle, float phi, u32 time, float radius)
Generate HSV8 (8-bit) noise for a sphere pattern.
CRGB noiseSphereCRGB(float angle, float phi, u32 time, float radius)
Generate CRGB noise for a sphere pattern.
Defines the hue, saturation, and value (HSV) pixel struct.
fl::u64 time() FL_NOEXCEPT
Alias for millis64() - returns 64-bit millisecond time.
Definition chrono.h:346
u8 u8 height
Definition blur.h:186
constexpr u16 NOISE16_EXTENT_MAX
Definition noise.h:23
constexpr u16 NOISE16_EXTENT_MIN
Observed min/max extents for inoise16() output.
Definition noise.h:22
Base definition for an LED controller.
Definition crgb.hpp:179
Representation of an 8-bit RGB pixel (Red, Green, Blue)
Definition crgb.h:38