Untitled
unknown
plain_text
a year ago
302 B
5
Indexable
var imgData = ctx.getImageData(0, 0, canvas.width, canvas.height); var indices = []; // Boundary check if (x1 < 0 || y1 < 0 || x1 + n > imgData.width || y1 + n > imgData.height) { console.error("(x1,y1) Out of bounds"); return []; // Return an empty array
Editor is loading...
Leave a Comment