MCPcopy Create free account
hub / github.com/TomClive/SeeDance2Stitcher / fillRect

Function fillRect

server.js:304–310  ·  view source on GitHub ↗
(rgba, width, x, y, rectWidth, rectHeight, color)

Source from the content-addressed store, hash-verified

302}
303
304function 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
312function drawBitmapText(rgba, width, x, y, line, scale) {
313 let cursor = x;

Callers 2

drawBitmapTextFunction · 0.85
writeLabelImageFunction · 0.85

Calls 1

setPixelFunction · 0.85

Tested by

no test coverage detected