FastLED 3.9.15
Loading...
Searching...
No Matches

◆ drawColor()

void fl::XYPath::drawColor ( const CRGB & color,
float from,
float to,
Leds * leds,
int steps = -1 )

Definition at line 259 of file xypath.cpp.

260 {
261 XYRasterU8Sparse &raster = tls_raster.access();
262 raster.clear();
263 steps = steps > 0 ? steps : calculateSteps(from, to);
264 rasterize(from, to, steps, raster);
265 raster.draw(color, leds->xymap(), leds->rgb());
266}
CRGB leds[NUM_LEDS]
Definition Apa102.ino:11
XYRaster raster(WIDTH, HEIGHT)
int calculateSteps(float from, float to)
Definition xypath.cpp:277
void rasterize(float from, float to, int steps, XYRasterU8Sparse &raster, AlphaFunction *optional_alpha_gen=nullptr)
Definition xypath.cpp:48
ThreadLocal< XYRasterU8Sparse > tls_raster
Definition xypath.cpp:19

References calculateSteps(), leds, raster, and rasterize().

+ Here is the call graph for this function: