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

Method accept

src/fl/gfx/gradient.cpp.hpp:53–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 n = fl::min(indices.size(), output.size());
52 }
53 void accept(const CRGBPalette16 *palette) {
54 for (fl::size i = 0; i < n; ++i) {
55 output[i] = ColorFromPalette(*palette, indices[i]);
56 }
57 }
58
59 void accept(const CRGBPalette32 *palette) {
60 for (fl::size i = 0; i < n; ++i) {

Callers

nothing calls this directly

Calls 3

ColorFromPaletteFunction · 0.85
ColorFromPaletteExtendedFunction · 0.85
acceptFunction · 0.50

Tested by

no test coverage detected