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

Method getImageData

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

Source from the content-addressed store, hash-verified

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

Callers 2

recognizeMethod · 0.45
runWithCanvasMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected