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

Method colorAt

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

Source from the content-addressed store, hash-verified

88} // namespace
89
90CRGB Gradient::colorAt(u8 index) const {
91 Visitor visitor(index);
92 mVariant.visit(visitor);
93 return visitor.return_val;
94}
95
96template <typename T> Gradient::Gradient(T *palette) { set(palette); }
97

Callers 1

drawMethod · 0.80

Calls 1

visitMethod · 0.45

Tested by

no test coverage detected