|
FastLED 3.9.15
|
Misc utility functions for palettes, blending, and more.
This file is being refactored.
Definition in file colorutils.cpp.
#include "fl/int.h"#include <math.h>#include "fl/stdint.h"#include "FastLED.h"#include "fl/assert.h"#include "fl/colorutils.h"#include "fl/unused.h"#include "fl/xymap.h"
Include dependency graph for colorutils.cpp:Go to the source code of this file.
Namespaces | |
| namespace | fl |
| IMPORTANT! | |
Macros | |
| #define | __PROG_TYPES_COMPAT__ |
| #define | FASTLED_INTERNAL |
Functions | |
| CRGB | fl::applyGamma_video (const CRGB &orig, float gamma) |
| CRGB | fl::applyGamma_video (const CRGB &orig, float gammaR, float gammaG, float gammaB) |
| fl::u8 | fl::applyGamma_video (fl::u8 brightness, float gamma) |
| CHSV | fl::blend (const CHSV &p1, const CHSV &p2, fract8 amountOfP2, TGradientDirectionCode directionCode) |
| CHSV * | fl::blend (const CHSV *src1, const CHSV *src2, CHSV *dest, fl::u16 count, fract8 amountOfsrc2, TGradientDirectionCode directionCode) |
| CRGB | fl::blend (const CRGB &p1, const CRGB &p2, fract8 amountOfP2) |
| CRGB * | fl::blend (const CRGB *src1, const CRGB *src2, CRGB *dest, fl::u16 count, fract8 amountOfsrc2) |
| CHSV | fl::ColorFromPalette (const CHSVPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
| CHSV | fl::ColorFromPalette (const CHSVPalette256 &pal, fl::u8 index, fl::u8 brightness, TBlendType) |
| CHSV | fl::ColorFromPalette (const CHSVPalette32 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
| CRGB | fl::ColorFromPalette (const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
| CRGB | fl::ColorFromPalette (const CRGBPalette256 &pal, fl::u8 index, fl::u8 brightness, TBlendType) |
| CRGB | fl::ColorFromPalette (const CRGBPalette32 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
| CRGB | fl::ColorFromPalette (const TProgmemRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
| CRGB | fl::ColorFromPalette (const TProgmemRGBPalette32 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) |
| CRGB | fl::ColorFromPaletteExtended (const CRGBPalette16 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) |
| CRGB | fl::ColorFromPaletteExtended (const CRGBPalette256 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) |
| CRGB | fl::ColorFromPaletteExtended (const CRGBPalette32 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) |
| void | fl::fade_raw (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) |
| void | fl::fade_video (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) |
| void | fl::fadeLightBy (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) |
| void | fl::fadeToBlackBy (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) |
| void | fl::fadeUsingColor (CRGB *leds, fl::u16 numLeds, const CRGB &colormask) |
| CRGB | fl::HeatColor (fl::u8 temperature) |
| fl::u8 | fl::lsrX4 (fl::u8 dividend) |
| Helper function to divide a number by 16, aka four logical shift right (LSR)'s. | |
| CRGB & | fl::napplyGamma_video (CRGB &rgb, float gamma) |
| CRGB & | fl::napplyGamma_video (CRGB &rgb, float gammaR, float gammaG, float gammaB) |
| void | fl::napplyGamma_video (CRGB *rgbarray, fl::u16 count, float gamma) |
| void | fl::napplyGamma_video (CRGB *rgbarray, fl::u16 count, float gammaR, float gammaG, float gammaB) |
| CHSV & | fl::nblend (CHSV &existing, const CHSV &overlay, fract8 amountOfOverlay, TGradientDirectionCode directionCode) |
| void | fl::nblend (CHSV *existing, const CHSV *overlay, fl::u16 count, fract8 amountOfOverlay, TGradientDirectionCode directionCode) |
| CRGB & | fl::nblend (CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay) |
| void | fl::nblend (CRGB *existing, const CRGB *overlay, fl::u16 count, fract8 amountOfOverlay) |
| void | fl::nblendPaletteTowardPalette (CRGBPalette16 ¤t, CRGBPalette16 &target, fl::u8 maxChanges) |
| void | fl::nscale8 (CRGB *leds, fl::u16 num_leds, fl::u8 scale) |
| void | fl::nscale8_video (CRGB *leds, fl::u16 num_leds, fl::u8 scale) |
| void | fl::UpscalePalette (const class CHSVPalette16 &srcpal16, class CHSVPalette256 &destpal256) |
| void | fl::UpscalePalette (const class CHSVPalette16 &srcpal16, class CHSVPalette32 &destpal32) |
| void | fl::UpscalePalette (const class CHSVPalette32 &srcpal32, class CHSVPalette256 &destpal256) |
| void | fl::UpscalePalette (const class CRGBPalette16 &srcpal16, class CRGBPalette256 &destpal256) |
| void | fl::UpscalePalette (const class CRGBPalette16 &srcpal16, class CRGBPalette32 &destpal32) |
| void | fl::UpscalePalette (const class CRGBPalette32 &srcpal32, class CRGBPalette256 &destpal256) |