MCPcopy Create free account
hub / github.com/Semporia/Scripts / constructor

Method constructor

jd_validate.js:59–70  ·  view source on GitHub ↗
(bg, patch, y)

Source from the content-addressed store, hash-verified

57
58class 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();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected