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

Method NewRosePath

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

Source from the content-addressed store, hash-verified

199}
200
201XYPathPtr XYPath::NewRosePath(u16 width, u16 height,
202 const fl::shared_ptr<RosePathParams> &params) {
203 RosePathPtr path = fl::make_shared<RosePath>(params);
204 XYPathPtr out = fl::make_shared<XYPath>(path);
205 if (width > 0 && height > 0) {
206 out->setDrawBounds(width, height);
207 }
208 return out;
209}
210
211XYPathPtr XYPath::NewPhyllotaxisPath(u16 width, u16 height,
212 const fl::shared_ptr<PhyllotaxisParams> &args) {

Callers

nothing calls this directly

Calls 1

setDrawBoundsMethod · 0.45

Tested by

no test coverage detected