()
| 45 | } |
| 46 | |
| 47 | async 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 | |
| 60 | export default main; |