FastLED 3.10.8
Loading...
Searching...
No Matches

◆ UpscalePaletteInterpolated()

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

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

1283 {
1284 const fl::u16 dest_size =
1285 sizeof(destpal.entries) / sizeof(destpal.entries[0]);
1286 for (fl::u16 i = 0; i < dest_size; ++i) {
1287 destpal[static_cast<fl::u8>(i)] =
1288 ColorFromPalette(srcpal, static_cast<fl::u8>(i));
1289 }
1290}
unsigned char u8
Definition stdint.h:131
CRGB ColorFromPalette(const CRGBPalette16 &pal, fl::u8 index, fl::u8 brightness, TBlendType blendType) FL_NO_EXCEPT

References fl::ColorFromPalette(), and fl::FL_NO_EXCEPT.

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: