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

Method constructor

modules/commodetto/commodettoRLEOut.js:44–52  ·  view source on GitHub ↗
(dictionary)

Source from the content-addressed store, hash-verified

42
43export default class RLEOut extends PixelsOut {
44 constructor(dictionary) {
45 super(dictionary);
46
47 this.depth = Bitmap.depth(this.format)
48 if ((16 != this.depth) && (8 != this.depth))
49 throw new Error("unsupported pixel format");
50
51 this.key = dictionary.key;
52 }
53 begin(x, y, width, height) {
54 this.buffers = [];
55 this.output = undefined;

Callers

nothing calls this directly

Calls 1

depthMethod · 0.45

Tested by

no test coverage detected