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

Method ScaleUp

src/fl/fx/2d/scale_up.cpp.hpp:34–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32namespace fl {
33
34ScaleUp::ScaleUp(const XYMap& xymap, Fx2dPtr fx) : Fx2d(xymap), mDelegate(fx) {
35 // Turn off re-mapping of the delegate's XYMap, since bilinearExpand needs
36 // to work in screen coordinates. The final mapping will for this class will
37 // still be performed.
38 mDelegate->getXYMap().setRectangularGrid();
39}
40
41void ScaleUp::draw(DrawContext context) {
42 if (mSurface.empty()) {

Callers

nothing calls this directly

Calls 2

setRectangularGridMethod · 0.80
getXYMapMethod · 0.80

Tested by

no test coverage detected