MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / xs_poco_origin

Function xs_poco_origin

modules/commodetto/commodettoPocoCore.c:599–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

597}
598
599void xs_poco_origin(xsMachine *the)
600{
601 Poco poco = xsmcGetHostDataPoco(xsThis);
602 int argc = xsmcArgc;
603
604 if (argc) {
605 PocoCoordinate x, y;
606
607 x = (PocoCoordinate)xsmcToInteger(xsArg(0));
608 y = (PocoCoordinate)xsmcToInteger(xsArg(1));
609 PocoOriginPush(poco, x, y);
610 }
611 else
612 PocoOriginPop(poco);
613}
614
615void xs_poco_fillRectangle(xsMachine *the)
616{

Callers

nothing calls this directly

Calls 2

PocoOriginPushFunction · 0.85
PocoOriginPopFunction · 0.85

Tested by

no test coverage detected