16using fl::CRGBPalette16;
17using fl::CRGBPalette32;
18using fl::CRGBPalette256;
19using fl::CHSVPalette16;
20using fl::CHSVPalette32;
21using fl::CHSVPalette256;
25using fl::TRGBGradientPaletteEntryUnion;
26using fl::TDynamicRGBGradientPalette_byte;
27using fl::TDynamicRGBGradientPalette_bytes;
36using fl::TDynamicRGBGradientPaletteRef;
41using fl::fill_palette;
45using fl::fill_palette_circular;
46using fl::map_data_into_colors_through_palette;
61using fl::LINEARBLEND_NOWRAP;
109#pragma GCC diagnostic push
110#pragma GCC diagnostic ignored "-Wpedantic"
112#define DEFINE_GRADIENT_PALETTE(X) \
114 extern const TProgmemRGBGradientPalette_byte X[] FL_PROGMEM =
117#define DECLARE_GRADIENT_PALETTE(X) \
119 extern const TProgmemRGBGradientPalette_byte X[] FL_PROGMEM
121#pragma GCC diagnostic pop
Utility functions for color fill, palettes, blending, and more.
void blurColumns(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const XYMap &xyMap)
Perform a blur1d() on every column of a rectangular matrix.
void blur2d(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const XYMap &xymap)
Two-dimensional blur filter.
void blur1d(CRGB *leds, uint16_t numLeds, fract8 blur_amount)
One-dimensional blur filter.
void blurRows(CRGB *leds, uint8_t width, uint8_t height, fract8 blur_amount, const XYMap &xyMap)
Perform a blur1d() on every row of a rectangular matrix.
void fill_gradient(T *targetArray, uint16_t startpos, CHSV startcolor, uint16_t endpos, CHSV endcolor, TGradientDirectionCode directionCode=SHORTEST_HUES)
Fill a range of LEDs with a smooth HSV gradient between two HSV colors.
void fill_rainbow(struct CRGB *targetArray, int numToFill, uint8_t initialhue, uint8_t deltahue)
Fill a range of LEDs with a rainbow of colors.
void fill_solid(struct CRGB *targetArray, int numToFill, const struct CRGB &color)
Fill a range of LEDs with a solid color.
void fadeUsingColor(CRGB *leds, uint16_t numLeds, const CRGB &colormask)
TGradientDirectionCode
Hue direction for calculating fill gradients.
void UpscalePalette(const class CRGBPalette16 &srcpal16, class CRGBPalette256 &destpal256)
CRGB ColorFromPaletteExtended(const CRGBPalette32 &pal, uint16_t index, uint8_t brightness, TBlendType blendType)
uint8_t applyGamma_video(uint8_t brightness, float gamma)
CRGB ColorFromPalette(const CRGBPalette16 &pal, uint8_t index, uint8_t brightness, TBlendType blendType)
CRGB HeatColor(uint8_t temperature)
void fadeToBlackBy(CRGB *leds, uint16_t num_leds, uint8_t fadeBy)
CRGB blend(const CRGB &p1, const CRGB &p2, fract8 amountOfP2)
void nblendPaletteTowardPalette(CRGBPalette16 ¤t, CRGBPalette16 &target, uint8_t maxChanges)
CRGB & nblend(CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay)
void fade_raw(CRGB *leds, uint16_t num_leds, uint8_t fadeBy)
void fadeLightBy(CRGB *leds, uint16_t num_leds, uint8_t fadeBy)
void nscale8(CRGB *leds, uint16_t num_leds, uint8_t scale)
CRGB & napplyGamma_video(CRGB &rgb, float gamma)
void fade_video(CRGB *leds, uint16_t num_leds, uint8_t fadeBy)
void nscale8_video(CRGB *leds, uint16_t num_leds, uint8_t scale)