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

Method NewCatmullRomPath

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

Source from the content-addressed store, hash-verified

229}
230
231XYPathPtr XYPath::NewCatmullRomPath(u16 width, u16 height,
232 const fl::shared_ptr<CatmullRomParams> &params) {
233 CatmullRomPathPtr path = fl::make_shared<CatmullRomPath>(params);
234 XYPathPtr out = fl::make_shared<XYPath>(path);
235 if (width > 0 && height > 0) {
236 out->setDrawBounds(width, height);
237 }
238 return out;
239}
240
241XYPathPtr XYPath::NewCustomPath(const fl::function<vec2f(float)> &f,
242 const rect<i16> &drawbounds,

Callers

nothing calls this directly

Calls 1

setDrawBoundsMethod · 0.45

Tested by

no test coverage detected