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

Method accept

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

Source from the content-addressed store, hash-verified

10struct Visitor {
11 Visitor(u8 index) : index(index) {}
12 void accept(const CRGBPalette16 *palette) {
13 CRGB c = ColorFromPalette(*palette, index);
14 return_val = c;
15 }
16
17 void accept(const CRGBPalette32 *palette) {
18 CRGB c = ColorFromPalette(*palette, index);

Callers

nothing calls this directly

Calls 3

ColorFromPaletteFunction · 0.85
ColorFromPaletteExtendedFunction · 0.85
acceptFunction · 0.50

Tested by

no test coverage detected