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

Function PiuPort_fillColor

modules/piu/All/piuPort.c:296–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

294}
295
296void PiuPort_fillColor(xsMachine* the)
297{
298 PiuPort* self = PIU(Port, xsThis);
299 PiuView* view = (*self)->view;
300 PiuColorRecord color;
301 PiuCoordinate x, y;
302 PiuDimension w, h;
303 if (!view) xsUnknownError("out of sequence");
304 PiuColorDictionary(the, &xsArg(0), &color);
305 x = xsToPiuCoordinate(xsArg(1));
306 y = xsToPiuCoordinate(xsArg(2));
307 w = xsToPiuDimension(xsArg(3));
308 h = xsToPiuDimension(xsArg(4));
309 PiuViewPushColor(view, &color);
310 PiuViewFillColor(view, x, y, w, h);
311 PiuViewPopColor(view);
312}
313
314void PiuPort_fillTexture(xsMachine* the)
315{

Callers

nothing calls this directly

Calls 4

PiuColorDictionaryFunction · 0.85
PiuViewPushColorFunction · 0.50
PiuViewFillColorFunction · 0.50
PiuViewPopColorFunction · 0.50

Tested by

no test coverage detected