MCPcopy Create free account
hub / github.com/Semporia/Scripts / getImageData

Method getImageData

jd_validate.js:46–52  ·  view source on GitHub ↗
(x, y, w, h)

Source from the content-addressed store, hash-verified

44 }
45
46 getImageData(x, y, w, h) {
47 const {pixels} = this;
48 const len = w * h * 4;
49 const startIndex = x * 4 + y * (w * 4);
50
51 return {data: pixels.slice(startIndex, startIndex + len)};
52 }
53}
54
55const PUZZLE_GAP = 8;

Callers 1

recognizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected