MCPcopy Create free account
hub / github.com/Toulu-debug/enen / getImageData

Method getImageData

utils/validate_single.js:37–43  ·  view source on GitHub ↗
(x, y, w, h)

Source from the content-addressed store, hash-verified

35 }
36
37 getImageData(x, y, w, h) {
38 const {pixels} = this;
39 const len = w * h * 4;
40 const startIndex = x * 4 + y * (w * 4);
41
42 return {data: pixels.slice(startIndex, startIndex + len)};
43 }
44}
45
46const PUZZLE_GAP = 8;

Callers 2

recognizeMethod · 0.80
runWithCanvasMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected