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

Method getImageData

jd_joy_new.js:53–59  ·  view source on GitHub ↗
(x, y, w, h)

Source from the content-addressed store, hash-verified

51 }
52
53 getImageData(x, y, w, h) {
54 const {pixels} = this;
55 const len = w * h * 4;
56 const startIndex = x * 4 + y * (w * 4);
57
58 return {data: pixels.slice(startIndex, startIndex + len)};
59 }
60}
61
62const PUZZLE_GAP = 8;

Callers 1

recognizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected