()
| 123 | } |
| 124 | |
| 125 | function offscreen() { |
| 126 | let offscreen = new BufferOut({width: 30, height: 30, pixelFormat: poco.pixelsOut.pixelFormat}); |
| 127 | let pocoOff = new Poco(offscreen); |
| 128 | pocoOff.begin(); |
| 129 | pocoOff.fillRectangle(gray, 0, 0, 30, 30); |
| 130 | pocoOff.fillRectangle(red, 2, 2, 26, 26); |
| 131 | pocoOff.fillRectangle(black, 4, 4, 22, 22); |
| 132 | pocoOff.fillRectangle(blue, 6, 6, 18, 18); |
| 133 | pocoOff.fillRectangle(white, 8, 8, 14, 14); |
| 134 | pocoOff.fillRectangle(green, 10, 10, 10, 10); |
| 135 | pocoOff.fillRectangle(gray, 13, 13, 4, 4); |
| 136 | pocoOff.end(); |
| 137 | |
| 138 | poco.fillPattern(offscreen.bitmap, 0, 0, poco.width, poco.height); |
| 139 | } |
| 140 | |
| 141 | function alpha() { |
| 142 | poco.fillRectangle(gray, 0, 0, poco.width, poco.height); |
nothing calls this directly
no test coverage detected