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

◆ NewCatmullRomPath()

XYPathPtr fl::XYPath::NewCatmullRomPath ( u16 width = 0,
u16 height = 0,
const fl::shared_ptr< CatmullRomParams > & params = fl::make_shared<CatmullRomParams>() )
static

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

232 {
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}
u8 u8 height
Definition blur.h:186
u8 width
Definition blur.h:186
shared_ptr< T > make_shared(Args &&... args) FL_NOEXCEPT
Definition shared_ptr.h:414

References fl::height, fl::make_shared(), and fl::width.

Referenced by CreateXYPaths().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: