FastLED 3.10.8
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 "fl/stl/noexcept.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}::Oklab
 
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) FL_NO_EXCEPT
 
CRGB fl::applyGamma_video (const CRGB &orig, float gammaR, float gammaG, float gammaB) FL_NO_EXCEPT
 
fl::u8 fl::applyGamma_video (fl::u8 brightness, float gamma) FL_NO_EXCEPT
 
CHSV fl::blend (const CHSV &p1, const CHSV &p2, fract8 amountOfP2, TGradientDirectionCode directionCode) FL_NO_EXCEPT
 
CHSV * fl::blend (const CHSV *src1, const CHSV *src2, CHSV *dest, fl::u16 count, fract8 amountOfsrc2, TGradientDirectionCode directionCode) FL_NO_EXCEPT
 
CRGB fl::blend (const CRGB &p1, const CRGB &p2, fract8 amountOfP2) FL_NO_EXCEPT
 
CRGB * fl::blend (const CRGB *src1, const CRGB *src2, CRGB *dest, fl::u16 count, fract8 amountOfsrc2) FL_NO_EXCEPT
 
CRGB fl::blend_oklab (const CRGB &p1, const CRGB &p2, fract8 amountOfP2) FL_NO_EXCEPT
 
fl::u8 fl::anonymous_namespace{colorutils.cpp.hpp}::channelFromFloat (float value) FL_NO_EXCEPT
 
CHSV fl::ColorFromPalette (const CHSVPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CHSV fl::ColorFromPalette (const CHSVPalette256 &pal, fl::u8 index, fl::u8 brightness, TBlendType) FL_NO_EXCEPT
 
CHSV fl::ColorFromPalette (const CHSVPalette32 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB fl::ColorFromPalette (const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB fl::ColorFromPalette (const CRGBPalette256 &pal, fl::u8 index, fl::u8 brightness, TBlendType) FL_NO_EXCEPT
 
CRGB fl::ColorFromPalette (const CRGBPalette32 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB fl::ColorFromPalette (const TProgmemRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB fl::ColorFromPalette (const TProgmemRGBPalette32 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB fl::ColorFromPaletteExtended (const CRGBPalette16 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB fl::ColorFromPaletteExtended (const CRGBPalette256 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB fl::ColorFromPaletteExtended (const CRGBPalette32 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB fl::ColorFromPaletteExtended (const TProgmemRGBPalette16 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB fl::ColorFromPaletteExtended (const TProgmemRGBPalette32 &pal, fl::u16 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB16 fl::ColorFromPaletteHD (const CRGBPalette16 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB16 fl::ColorFromPaletteHD (const CRGBPalette256 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB16 fl::ColorFromPaletteHD (const CRGBPalette32 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB16 fl::ColorFromPaletteHD (const TProgmemRGBPalette16 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
CRGB16 fl::ColorFromPaletteHD (const TProgmemRGBPalette32 &pal, fl::u16 index, fl::u8x8 brightness, TBlendType blendType) FL_NO_EXCEPT
 
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) FL_NO_EXCEPT
 
void fl::fade_raw (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) FL_NO_EXCEPT
 
void fl::fade_video (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) FL_NO_EXCEPT
 
void fl::fadeLightBy (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) FL_NO_EXCEPT
 
void fl::fadeToBlackBy (CRGB *leds, fl::u16 num_leds, fl::u8 fadeBy) FL_NO_EXCEPT
 
void fl::fadeUsingColor (CRGB *leds, fl::u16 numLeds, const CRGB &colormask) FL_NO_EXCEPT
 
CRGB fl::HeatColor (fl::u8 temperature) FL_NO_EXCEPT
 
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_NO_EXCEPT
 
fl::u8 fl::lsrX4 (fl::u8 dividend) FL_NO_EXCEPT
 Helper function to divide a number by 16, aka four logical shift right (LSR)'s.
 
CRGB & fl::napplyGamma_video (CRGB &rgb, float gamma) FL_NO_EXCEPT
 
CRGB & fl::napplyGamma_video (CRGB &rgb, float gammaR, float gammaG, float gammaB) FL_NO_EXCEPT
 
void fl::napplyGamma_video (CRGB *rgbarray, fl::u16 count, float gamma) FL_NO_EXCEPT
 
void fl::napplyGamma_video (CRGB *rgbarray, fl::u16 count, float gammaR, float gammaG, float gammaB) FL_NO_EXCEPT
 
CHSV & fl::nblend (CHSV &existing, const CHSV &overlay, fract8 amountOfOverlay, TGradientDirectionCode directionCode) FL_NO_EXCEPT
 
void fl::nblend (CHSV *existing, const CHSV *overlay, fl::u16 count, fract8 amountOfOverlay, TGradientDirectionCode directionCode) FL_NO_EXCEPT
 
CRGB & fl::nblend (CRGB &existing, const CRGB &overlay, fract8 amountOfOverlay) FL_NO_EXCEPT
 
void fl::nblend (CRGB *existing, const CRGB *overlay, fl::u16 count, fract8 amountOfOverlay) FL_NO_EXCEPT
 
void fl::nblendPaletteTowardPalette (CRGBPalette16 &current, CRGBPalette16 &target, fl::u8 maxChanges) FL_NO_EXCEPT
 
void fl::nscale8 (CRGB *leds, fl::u16 num_leds, fl::u8 scale) FL_NO_EXCEPT
 
void fl::nscale8_video (CRGB *leds, fl::u16 num_leds, fl::u8 scale) FL_NO_EXCEPT
 
CRGB fl::anonymous_namespace{colorutils.cpp.hpp}::oklabToRgb (const Oklab &lab) FL_NO_EXCEPT
 
fl::u16 fl::anonymous_namespace{colorutils.cpp.hpp}::promote_channel_to_hd (fl::u8 channel) FL_NO_EXCEPT
 
CRGB16 fl::anonymous_namespace{colorutils.cpp.hpp}::promote_rgb_to_hd (const CRGB &rgb) FL_NO_EXCEPT
 
Oklab fl::anonymous_namespace{colorutils.cpp.hpp}::rgbToOklab (const CRGB &rgb) FL_NO_EXCEPT
 
fl::u16 fl::anonymous_namespace{colorutils.cpp.hpp}::scale_hd_channel (fl::u16 channel, fl::u8x8 scale) FL_NO_EXCEPT
 
void fl::anonymous_namespace{colorutils.cpp.hpp}::scale_rgb_hd (CRGB16 &rgb, fl::u8x8 brightness) FL_NO_EXCEPT
 
float fl::anonymous_namespace{colorutils.cpp.hpp}::signedCubeRoot (float value) FL_NO_EXCEPT
 
void fl::UpscalePalette (const class CHSVPalette16 &srcpal16, class CHSVPalette256 &destpal256) FL_NO_EXCEPT
 
void fl::UpscalePalette (const class CHSVPalette16 &srcpal16, class CHSVPalette32 &destpal32) FL_NO_EXCEPT
 
void fl::UpscalePalette (const class CHSVPalette32 &srcpal32, class CHSVPalette256 &destpal256) FL_NO_EXCEPT
 
void fl::UpscalePalette (const class CRGBPalette16 &srcpal16, class CRGBPalette256 &destpal256) FL_NO_EXCEPT
 
void fl::UpscalePalette (const class CRGBPalette16 &srcpal16, class CRGBPalette32 &destpal32) FL_NO_EXCEPT
 
void fl::UpscalePalette (const class CRGBPalette32 &srcpal32, class CRGBPalette256 &destpal256) FL_NO_EXCEPT
 
template<typename TSrcPalette, typename TDestPalette>
void fl::detail::UpscalePaletteInterpolated (const TSrcPalette &srcpal, TDestPalette &destpal) FL_NO_EXCEPT
 
template<typename TSrcPalette, typename TDestPalette>
void fl::detail::UpscalePaletteRepeat (const TSrcPalette &srcpal, TDestPalette &destpal) FL_NO_EXCEPT
 

Class Documentation

◆ fl::anonymous_namespace{colorutils.cpp.hpp}::Oklab

struct fl::anonymous_namespace{colorutils.cpp.hpp}::Oklab
Class Members
float blue_yellow
float green_red
float lightness