FastLED 3.10.8
Loading...
Searching...
No Matches

◆ drawColor()

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

Definition at line 272 of file xypath.cpp.hpp.

273 {
274 XYRasterU8Sparse &raster = get_tls_raster();
275 raster.clear();
276 steps = steps > 0 ? steps : calculateSteps(from, to);
277 rasterize(from, to, steps, raster);
278 raster.draw(color, leds);
279}
CRGB leds[1]
int calculateSteps(float from, float to) FL_NO_EXCEPT
void rasterize(float from, float to, int steps, XYRasterU8Sparse &raster, AlphaFunction *optional_alpha_gen=nullptr) FL_NO_EXCEPT
void draw(const CRGB &color, const XYMap &xymap, fl::span< CRGB > out) FL_NO_EXCEPT
XYRasterU8Sparse & clear() FL_NO_EXCEPT
fl::UISlider steps("Steps", 100.0f, 1.0f, 200.0f, 1.0f)
fl::XYRaster raster(WIDTH, HEIGHT)
XYRasterU8Sparse & get_tls_raster() FL_NO_EXCEPT

References calculateSteps(), fl::FL_NO_EXCEPT, leds, raster(), rasterize(), and steps().

+ Here is the call graph for this function: