(x, y, w, h)
| 35 | } |
| 36 | |
| 37 | getImageData(x, y, w, h) { |
| 38 | const {pixels} = this; |
| 39 | const len = w * h * 4; |
| 40 | const startIndex = x * 4 + y * (w * 4); |
| 41 | |
| 42 | return {data: pixels.slice(startIndex, startIndex + len)}; |
| 43 | } |
| 44 | } |
| 45 | |
| 46 | const PUZZLE_GAP = 8; |
no outgoing calls
no test coverage detected