(bg, patch, y)
| 57 | |
| 58 | class PuzzleRecognizer { |
| 59 | constructor(bg, patch, y) { |
| 60 | const imgBg = new PNGDecoder(Buffer.from(bg, 'base64')); |
| 61 | const imgPatch = new PNGDecoder(Buffer.from(patch, 'base64')); |
| 62 | |
| 63 | this.bg = imgBg; |
| 64 | this.patch = imgPatch; |
| 65 | this.rawBg = bg; |
| 66 | this.rawPatch = patch; |
| 67 | this.y = y; |
| 68 | this.w = imgBg.width; |
| 69 | this.h = imgBg.height; |
| 70 | } |
| 71 | |
| 72 | async run() { |
| 73 | await this.bg.decodeToPixels(); |
nothing calls this directly
no outgoing calls
no test coverage detected