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

Function setPixel

server.js:296–302  ·  view source on GitHub ↗
(rgba, width, x, y, color)

Source from the content-addressed store, hash-verified

294}
295
296function setPixel(rgba, width, x, y, color) {
297 const index = (y * width + x) * 4;
298 rgba[index] = color[0];
299 rgba[index + 1] = color[1];
300 rgba[index + 2] = color[2];
301 rgba[index + 3] = color[3];
302}
303
304function fillRect(rgba, width, x, y, rectWidth, rectHeight, color) {
305 for (let yy = y; yy < y + rectHeight; yy += 1) {

Callers 1

fillRectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected