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

◆ drawGradient()

void fl::XYPath::drawGradient ( const Gradient & gradient,
float from,
float to,
Leds * leds,
int steps = -1 )

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

283 {
284 XYRasterU8Sparse &raster = get_tls_raster();
285 raster.clear();
286 steps = steps > 0 ? steps : calculateSteps(from, to);
287 rasterize(from, to, steps, raster);
288 raster.drawGradient(gradient, leds);
289}
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 drawGradient(const Gradient &gradient, 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: