|
FastLED 3.9.15
|
Functions to generate and fill arrays with noise.
Definition in file noise.h.
#include "fl/stl/stdint.h"#include "crgb.h"#include "chsv.h"#include "fl/gfx/hsv16.h"#include "fl/math/math.h"#include "fl/math/qfx.h"#include "fl/math/intmap.h"#include "fl/gfx/noise/noise.h"
Include dependency graph for noise.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
16-Bit Scaled Noise Functions | |
| fl::u16 | inoise16 (fl::u32 x) |
| 16-bit, fixed point implementation of Perlin's noise. | |
| fl::u16 | inoise16 (fl::u32 x, fl::u32 y) |
| fl::u16 | inoise16 (fl::u32 x, fl::u32 y, fl::u32 z) |
| fl::u16 | inoise16 (fl::u32 x, fl::u32 y, fl::u32 z, fl::u32 t) |
16-Bit Raw Noise Functions | |
| fl::i16 | inoise16_raw (fl::u32 x) |
| 16-bit, fixed point implementation of Perlin's noise without scaling. | |
| fl::i16 | inoise16_raw (fl::u32 x, fl::u32 y) |
| fl::i16 | inoise16_raw (fl::u32 x, fl::u32 y, fl::u32 z) |
| fl::i16 | inoise16_raw (fl::u32 x, fl::u32 y, fl::u32 z, fl::u32 w) |
8-Bit Scaled Noise Functions | |
| fl::u8 | inoise8 (fl::u16 x) |
| 8-Bit, fixed point implementation of Perlin's noise. | |
| fl::u8 | inoise8 (fl::u16 x, fl::u16 y) |
| fl::u8 | inoise8 (fl::u16 x, fl::u16 y, fl::u16 z) |
8-Bit Raw Noise Functions | |
| fl::i8 | inoise8_raw (fl::u16 x) |
| 8-bit, fixed point implementation of Perlin's noise without scaling. | |
| fl::i8 | inoise8_raw (fl::u16 x, fl::u16 y) |
| fl::i8 | inoise8_raw (fl::u16 x, fl::u16 y, fl::u16 z) |
32-Bit Simplex Noise Functions | |
| fl::u16 | snoise16 (fl::u32 x) |
| 32 bit, fixed point implementation of simplex noise functions. | |
| fl::u16 | snoise16 (fl::u32 x, fl::u32 y) |
| fl::u16 | snoise16 (fl::u32 x, fl::u32 y, fl::u32 z) |
| fl::u16 | snoise16 (fl::u32 x, fl::u32 y, fl::u32 z, fl::u32 w) |
Raw Fill Functions | |
Fill a 1D or 2D array with generated noise. | |
| void | fill_raw_2dnoise16 (fl::u16 *pData, int width, int height, fl::u8 octaves, fl::q88 freq88, fract16 amplitude, int skip, fl::u32 x, fl::i32 scalex, fl::u32 y, fl::i32 scaley, fl::u32 time) |
| Fill a 2D 16-bit buffer with noise, using inoise16() | |
| void | fill_raw_2dnoise16into8 (fl::u8 *pData, int width, int height, fl::u8 octaves, fl::q44 freq44, fract8 amplitude, int skip, fl::u32 x, fl::i32 scalex, fl::u32 y, fl::i32 scaley, fl::u32 time) |
| Fill a 2D 8-bit buffer with noise, using inoise16() | |
| void | fill_raw_2dnoise16into8 (fl::u8 *pData, int width, int height, fl::u8 octaves, fl::u32 x, fl::i32 scalex, fl::u32 y, fl::i32 scaley, fl::u32 time) |
| Fill a 2D 8-bit buffer with noise, using inoise16() | |
| void | fill_raw_2dnoise8 (fl::u8 *pData, int width, int height, fl::u8 octaves, fl::q44 freq44, fract8 amplitude, int skip, fl::u16 x, fl::i16 scalex, fl::u16 y, fl::i16 scaley, fl::u16 time) |
| Fill a 2D 8-bit buffer with noise, using inoise8() | |
| void | fill_raw_2dnoise8 (fl::u8 *pData, int width, int height, fl::u8 octaves, fl::u16 x, fl::i16 scalex, fl::u16 y, fl::i16 scaley, fl::u16 time) |
| Fill a 2D 8-bit buffer with noise, using inoise8() | |
| void | fill_raw_2dnoise8 (fl::u8 *pData, int width, int height, fl::u8 octaves, fl::u16 x, int scalex, fl::u16 y, int scaley, fl::u16 time) |
| void | fill_raw_noise16into8 (fl::u8 *pData, fl::u8 num_points, fl::u8 octaves, fl::u32 x, int scalex, fl::u32 time) |
| Fill a 1D 8-bit buffer with noise, using inoise16() | |
| void | fill_raw_noise8 (fl::u8 *pData, fl::u8 num_points, fl::u8 octaves, fl::u16 x, int scalex, fl::u16 time) |
| Fill a 1D 8-bit buffer with noise, using inoise8() | |
Fill Functions | |
Fill an LED array with colors based on noise. Colors are calculated using noisemaps, randomly selecting hue and value (brightness) points with full saturation (255). | |
| void | fill_2dnoise16 (CRGB *leds, int width, int height, bool serpentine, fl::u8 octaves, fl::u32 x, int xscale, fl::u32 y, int yscale, fl::u32 time, fl::u8 hue_octaves, fl::u16 hue_x, int hue_xscale, fl::u16 hue_y, fl::u16 hue_yscale, fl::u16 hue_time, bool blend, fl::u16 hue_shift=0) |
| Fill an LED matrix with random colors, using 16-bit noise. | |
| void | fill_2dnoise8 (CRGB *leds, int width, int height, bool serpentine, fl::u8 octaves, fl::u16 x, int xscale, fl::u16 y, int yscale, fl::u16 time, fl::u8 hue_octaves, fl::u16 hue_x, int hue_xscale, fl::u16 hue_y, fl::u16 hue_yscale, fl::u16 hue_time, bool blend) |
| Fill an LED matrix with random colors, using 8-bit noise. | |
| void | fill_noise16 (CRGB *leds, int num_leds, fl::u8 octaves, fl::u16 x, int scale, fl::u8 hue_octaves, fl::u16 hue_x, int hue_scale, fl::u16 time, fl::u8 hue_shift=0) |
| Fill an LED array with random colors, using 16-bit noise. | |
| void | fill_noise8 (CRGB *leds, int num_leds, fl::u8 octaves, fl::u16 x, int scale, fl::u8 hue_octaves, fl::u16 hue_x, int hue_scale, fl::u16 time) |
| Fill an LED array with random colors, using 8-bit noise. | |