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

Function main

examples/commodetto/jpegstream/main.js:68–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66];
67
68async function main() {
69 let poco = new Poco(screen);
70 poco.begin();
71 poco.fillRectangle(poco.makeColor(0, 0, 0), 0, 0, poco.width, poco.height);
72 poco.end();
73
74 let index = 0;
75 while (true) {
76 try {
77 await display(poco, "test.moddable.com", paths[index]);
78 }
79 catch {
80 /* this space intentionally left blank */
81 }
82 index = (index + 1) % paths.length;
83 }
84}
85
86export default main;

Callers

nothing calls this directly

Calls 5

beginMethod · 0.95
fillRectangleMethod · 0.95
makeColorMethod · 0.95
endMethod · 0.95
displayFunction · 0.85

Tested by

no test coverage detected