FastLED 3.9.15
Loading...
Searching...
No Matches
Noise Fill Functions

Detailed Description

Functions to fill a buffer with noise data.

Raw Fill Functions

Fill a 1D or 2D array with generated noise.

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()
 
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_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, int scalex, fl::u16 y, int scaley, fl::u16 time)
 
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_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_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()
 

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_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.
 
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_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_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.