FastLED 3.10.8
Loading...
Searching...
No Matches
colorutils.h File Reference
+ Include dependency graph for colorutils.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DECLARE_GRADIENT_PALETTE(X)
 
#define DEFINE_GRADIENT_PALETTE(X)
 

Enumerations

enum  TGradientDirectionCode
 Hue direction for calculating fill gradients. More...
 

Functions

fl::u8 applyGamma_video (fl::u8 brightness, float gamma) FL_NO_EXCEPT
 
CRGB blend (const CRGB &p1, const CRGB &p2, fract8 amountOfP2) FL_NO_EXCEPT
 
CRGB blend_oklab (const CRGB &p1, const CRGB &p2, fract8 amountOfP2) FL_NO_EXCEPT
 
void blur1d (fl::span< CRGB > leds, fract8 blur_amount) FL_NO_EXCEPT
 
void blur2d (fl::span< CRGB > leds, u8 width, u8 height, fract8 blur_amount, const XYMap &xymap) FL_NO_EXCEPT
 
void blurColumns (fl::span< CRGB > leds, u8 width, u8 height, fract8 blur_amount, const XYMap &xymap) FL_NO_EXCEPT
 
void blurRows (fl::span< CRGB > leds, u8 width, u8 height, fract8 blur_amount, const XYMap &xymap) FL_NO_EXCEPT
 
CRGB ColorFromPalette (const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB ColorFromPaletteExtended (const CRGBPalette32 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB16 ColorFromPaletteHD (const CRGBPalette32 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
void fade_raw (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) FL_NO_EXCEPT
 
void fade_video (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) FL_NO_EXCEPT
 
void fadeLightBy (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) FL_NO_EXCEPT
 
void fadeToBlackBy (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) FL_NO_EXCEPT
 
void fadeUsingColor (CRGB *leds, fl::u16 numLeds, const CRGB &colormask) FL_NO_EXCEPT
 
template<typename T>
void fill_gradient (T *targetArray, u16 startpos, CHSV startcolor, u16 endpos, CHSV endcolor, TGradientDirectionCode directionCode=SHORTEST_HUES) FL_NO_EXCEPT
 Fill a range of LEDs with a smooth HSV gradient between two HSV colors.
 
void fill_gradient_RGB (CRGB *leds, u16 startpos, CRGB startcolor, u16 endpos, CRGB endcolor) FL_NO_EXCEPT
 Fill a range of LEDs with a smooth RGB gradient between two RGB colors.
 
void fill_rainbow (CRGB *targetArray, int numToFill, fl::u8 initialhue, fl::u8 deltahue=5) FL_NO_EXCEPT
 Fill a range of LEDs with a rainbow of colors.
 
void fill_rainbow_circular (CRGB *targetArray, int numToFill, fl::u8 initialhue, bool reversed=false) FL_NO_EXCEPT
 Fill a range of LEDs with a rainbow of colors, so that the hues are continuous between the end of the strip and the beginning.
 
void fill_solid (CRGB *targetArray, int numToFill, const CRGB &color) FL_NO_EXCEPT
 Fill a range of LEDs with a solid color.
 
CRGB HeatColor (fl::u8 temperature) FL_NO_EXCEPT
 
CRGB & napplyGamma_video (CRGB &rgb, float gamma) FL_NO_EXCEPT
 
CRGB & nblend (CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay) FL_NO_EXCEPT
 
void nblendPaletteTowardPalette (CRGBPalette16 &current, CRGBPalette16 &target, fl::u8 maxChanges) FL_NO_EXCEPT
 
void nscale8 (CRGB *leds, fl::u16 num_leds, fl::u8 scale) FL_NO_EXCEPT
 
void nscale8_video (CRGB *leds, fl::u16 num_leds, fl::u8 scale) FL_NO_EXCEPT
 
void UpscalePalette (const class CRGBPalette16 &srcpal16, class CRGBPalette256 &destpal256) FL_NO_EXCEPT