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

Function main

examples/commodetto/jpeghttp/main.js:47–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47async function main() {
48 const poco = new Poco(screen);
49 const gray = poco.makeColor(0, 0, 0);
50 poco.begin();
51 poco.fillRectangle(gray, 0, 0, poco.width, poco.height);
52 poco.end();
53
54 render(await fetch('example1.jpg'), 5, poco);
55 render(await fetch('example2.jpg'), 35, poco);
56 render(await fetch('example3.jpg'), 65, poco);
57 render(await fetch('example4.jpg'), 90, poco);
58}
59
60export default main;

Callers

nothing calls this directly

Calls 6

makeColorMethod · 0.95
beginMethod · 0.95
fillRectangleMethod · 0.95
endMethod · 0.95
renderFunction · 0.70
fetchFunction · 0.70

Tested by

no test coverage detected