FastLED 3.9.15
Loading...
Searching...
No Matches
colorutils.cpp.hpp File Reference
#include "fl/stl/int.h"
#include "platforms/is_platform.h"
#include "fl/math/math.h"
#include "fl/math/fixed_point.h"
#include "fl/stl/stdint.h"
#include "fl/system/fastled.h"
#include "fl/stl/assert.h"
#include "fl/gfx/colorutils.h"
#include "fl/stl/compiler_control.h"
#include "fl/math/xymap.h"
+ Include dependency graph for colorutils.cpp.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  fl::anonymous_namespace{colorutils.cpp.hpp}::ProgmemRGBPaletteReader< Size >
 
struct  fl::anonymous_namespace{colorutils.cpp.hpp}::RuntimeRGBPaletteReader< Size >
 

Namespaces

namespace  fl
 Base definition for an LED controller.
 
namespace  fl::anonymous_namespace{colorutils.cpp.hpp}
 
namespace  fl::detail
 Compile-time linker keep-alive hook for a single fl::Bus.
 

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)
 
CHSVfl::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)
 
CRGBfl::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)
 
CRGB fl::ColorFromPaletteExtended (const TProgmemRGBPalette16 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType)
 
CRGB fl::ColorFromPaletteExtended (const TProgmemRGBPalette32 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType)
 
CRGB16 fl::ColorFromPaletteHD (const CRGBPalette16 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType)
 
CRGB16 fl::ColorFromPaletteHD (const CRGBPalette256 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType)
 
CRGB16 fl::ColorFromPaletteHD (const CRGBPalette32 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType)
 
CRGB16 fl::ColorFromPaletteHD (const TProgmemRGBPalette16 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType)
 
CRGB16 fl::ColorFromPaletteHD (const TProgmemRGBPalette32 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType)
 
template<fl::u8 PaletteBits, typename Reader>
CRGB16 fl::anonymous_namespace{colorutils.cpp.hpp}::ColorFromPaletteHDImpl (const Reader &reader, fl::u16 index, fl::u8x8 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::u16 fl::anonymous_namespace{colorutils.cpp.hpp}::lerp_channel_to_hd (fl::u8 a, fl::u8 b, fl::u16 frac, fl::u32 segment_size)
 
fl::u8 fl::lsrX4 (fl::u8 dividend)
 Helper function to divide a number by 16, aka four logical shift right (LSR)'s.
 
CRGBfl::napplyGamma_video (CRGB &rgb, float gamma)
 
CRGBfl::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)
 
CHSVfl::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)
 
CRGBfl::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 &current, 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)
 
fl::u16 fl::anonymous_namespace{colorutils.cpp.hpp}::promote_channel_to_hd (fl::u8 channel)
 
CRGB16 fl::anonymous_namespace{colorutils.cpp.hpp}::promote_rgb_to_hd (const CRGB &rgb)
 
fl::u16 fl::anonymous_namespace{colorutils.cpp.hpp}::scale_hd_channel (fl::u16 channel, fl::u8x8 scale)
 
void fl::anonymous_namespace{colorutils.cpp.hpp}::scale_rgb_hd (CRGB16 &rgb, fl::u8x8 brightness)
 
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)
 
template<typename TSrcPalette, typename TDestPalette>
void fl::detail::UpscalePaletteInterpolated (const TSrcPalette &srcpal, TDestPalette &destpal)
 
template<typename TSrcPalette, typename TDestPalette>
void fl::detail::UpscalePaletteRepeat (const TSrcPalette &srcpal, TDestPalette &destpal)