(rgba, width, x, y, rectWidth, rectHeight, color)
| 302 | } |
| 303 | |
| 304 | function fillRect(rgba, width, x, y, rectWidth, rectHeight, color) { |
| 305 | for (let yy = y; yy < y + rectHeight; yy += 1) { |
| 306 | for (let xx = x; xx < x + rectWidth; xx += 1) { |
| 307 | setPixel(rgba, width, xx, yy, color); |
| 308 | } |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | function drawBitmapText(rgba, width, x, y, line, scale) { |
| 313 | let cursor = x; |
no test coverage detected