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

Method getImageData

JDJRValidator_Pure.js:38–44  ·  view source on GitHub ↗
(x, y, w, h)

Source from the content-addressed store, hash-verified

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

Callers 2

recognizeMethod · 0.45
runWithCanvasMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected