FastLED 3.9.15
Loading...
Searching...
No Matches
colorutils.h File Reference
#include "fl/colorutils.h"
+ 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)
 Forward-declaration macro for DEFINE_GRADIENT_PALETTE(X)
 
#define DEFINE_GRADIENT_PALETTE(X)
 Defines a static RGB palette very compactly using a series of connected color gradients.
 

Enumerations

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

Functions

fl::u8 applyGamma_video (fl::u8 brightness, float gamma)
 
CRGB blend (const CRGB &p1, const CRGB &p2, fract8 amountOfP2)
 
void blur1d (CRGB *leds, fl::u16 numLeds, fract8 blur_amount)
 
void blur2d (CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount, const fl::XYMap &xymap)
 Two-dimensional blur filter.
 
void blurColumns (CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount, const fl::XYMap &xymap)
 Perform a blur1d() on every column of a rectangular matrix.
 
void blurRows (CRGB *leds, fl::u8 width, fl::u8 height, fract8 blur_amount, const fl::XYMap &xymap)
 Perform a blur1d() on every row of a rectangular matrix.
 
CRGB ColorFromPalette (const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType)
 
CRGB ColorFromPaletteExtended (const CRGBPalette32 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType)
 
void fade_raw (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
 
void fade_video (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
 
void fadeLightBy (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
 
void fadeToBlackBy (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy)
 
void fadeUsingColor (CRGB *leds, fl::u16 numLeds, const CRGB &colormask)
 
template<typename T>
void fill_gradient (T *targetArray, u16 startpos, CHSV startcolor, u16 endpos, CHSV endcolor, TGradientDirectionCode directionCode=SHORTEST_HUES)
 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)
 Fill a range of LEDs with a smooth RGB gradient between two RGB colors.
 
void fill_rainbow (struct CRGB *targetArray, int numToFill, fl::u8 initialhue, fl::u8 deltahue=5)
 Fill a range of LEDs with a rainbow of colors.
 
void fill_rainbow_circular (struct CRGB *targetArray, int numToFill, fl::u8 initialhue, bool reversed=false)
 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 (struct CRGB *targetArray, int numToFill, const struct CRGB &color)
 Fill a range of LEDs with a solid color.
 
CRGB HeatColor (fl::u8 temperature)
 
CRGBnapplyGamma_video (CRGB &rgb, float gamma)
 
CRGBnblend (CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay)
 
void nblendPaletteTowardPalette (CRGBPalette16 &current, CRGBPalette16 &target, fl::u8 maxChanges)
 
void nscale8 (CRGB *leds, fl::u16 num_leds, fl::u8 scale)
 
void nscale8_video (CRGB *leds, fl::u16 num_leds, fl::u8 scale)
 
void UpscalePalette (const class CRGBPalette16 &srcpal16, class CRGBPalette256 &destpal256)