MCPcopy Create free account
hub / github.com/6dylan6/jdm / getImageData

Method getImageData

function/jdValidate.js:33–42  ·  view source on GitHub ↗
(x, y, w, h)

Source from the content-addressed store, hash-verified

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

Callers 2

recognizeMethod · 0.45
runWithCanvasMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected