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