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

Method constructor

JDJRValidator_Pure.js:51–65  ·  view source on GitHub ↗
(bg, patch, y)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected