FastLED 3.9.15
Loading...
Searching...
No Matches

◆ UpscalePaletteInterpolated()

template<typename TSrcPalette, typename TDestPalette>
void fl::detail::UpscalePaletteInterpolated ( const TSrcPalette & srcpal,
TDestPalette & destpal )

Definition at line 1200 of file colorutils.cpp.hpp.

1201 {
1202 const fl::u16 dest_size =
1203 sizeof(destpal.entries) / sizeof(destpal.entries[0]);
1204 for (fl::u16 i = 0; i < dest_size; ++i) {
1205 destpal[static_cast<fl::u8>(i)] =
1206 ColorFromPalette(srcpal, static_cast<fl::u8>(i));
1207 }
1208}
unsigned char u8
Definition s16x16x4.h:132
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType)

References fl::ColorFromPalette().

Referenced by fl::UpscalePalette(), fl::UpscalePalette(), fl::UpscalePalette(), and fl::UpscalePalette().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: