MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / begin

Method begin

modules/commodetto/commodettoRLEOut.js:53–59  ·  view source on GitHub ↗
(x, y, width, height)

Source from the content-addressed store, hash-verified

51 this.key = dictionary.key;
52 }
53 begin(x, y, width, height) {
54 this.buffers = [];
55 this.output = undefined;
56 this.windowWidth = width;
57 this.windowHeight = height;
58 this.scratch = new Uint8Array(this.pixelsToBytes(width) + width);
59 }
60 send(pixels, offsetIn = 0, count = pixels.byteLength - offsetIn) {
61 let width = this.windowWidth;
62 let mask = new Uint8Array(this.pixelsToBytes(width))

Callers

nothing calls this directly

Calls 1

pixelsToBytesMethod · 0.95

Tested by

no test coverage detected