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