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

Method drawColor

src/fl/gfx/xypath.cpp.hpp:273–280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

271}
272
273void XYPath::drawColor(const CRGB &color, float from, float to, Leds *leds,
274 int steps) {
275 XYRasterU8Sparse &raster = get_tls_raster();
276 raster.clear();
277 steps = steps > 0 ? steps : calculateSteps(from, to);
278 rasterize(from, to, steps, raster);
279 raster.draw(color, leds);
280}
281
282void XYPath::drawGradient(const Gradient &gradient, float from, float to,
283 Leds *leds, int steps) {

Callers 1

loopFunction · 0.80

Calls 2

clearMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected