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 273 of file xypath.cpp.hpp.

274 {
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}
fl::CRGB leds[NUM_LEDS]
int calculateSteps(float from, float to)
void rasterize(float from, float to, int steps, XYRasterU8Sparse &raster, AlphaFunction *optional_alpha_gen=nullptr)
XYRasterU8Sparse & clear()
void draw(const CRGB &color, const XYMap &xymap, fl::span< CRGB > out)
fl::UISlider steps("Steps", 100.0f, 1.0f, 200.0f, 1.0f)
fl::XYRaster raster(WIDTH, HEIGHT)

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

+ Here is the call graph for this function: