MCPcopy Create free account
hub / github.com/FastLED/FastLED / UpscalePaletteInterpolated

Function UpscalePaletteInterpolated

src/fl/gfx/colorutils.cpp.hpp:1200–1208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1198
1199template <typename TSrcPalette, typename TDestPalette>
1200void UpscalePaletteInterpolated(const TSrcPalette &srcpal,
1201 TDestPalette &destpal) {
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}
1209
1210} // namespace detail
1211

Callers 1

UpscalePaletteFunction · 0.85

Calls 1

ColorFromPaletteFunction · 0.85

Tested by

no test coverage detected