(x, y, w, h)
| 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 | } |
| 44 | const PUZZLE_GAP = 8; |
| 45 | const PUZZLE_PAD = 10; |
no outgoing calls
no test coverage detected