MCPcopy Create free account
hub / github.com/Toulu-debug/enen / constructor

Method constructor

utils/validate_single.js:50–64  ·  view source on GitHub ↗
(bg, patch, y)

Source from the content-addressed store, hash-verified

48
49class PuzzleRecognizer {
50 constructor(bg, patch, y) {
51 // console.log(bg);
52 const imgBg = new PNGDecoder(Buffer.from(bg, 'base64'));
53 const imgPatch = new PNGDecoder(Buffer.from(patch, 'base64'));
54
55 // console.log(imgBg);
56
57 this.bg = imgBg;
58 this.patch = imgPatch;
59 this.rawBg = bg;
60 this.rawPatch = patch;
61 this.y = y;
62 this.w = imgBg.width;
63 this.h = imgBg.height;
64 }
65
66 async run() {
67 await this.bg.decodeToPixels();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected