MCPcopy Create free account
hub / github.com/32comic/image2pixel-web / constructor

Method constructor

pixelizer.js:1228–1232  ·  view source on GitHub ↗
(pixels, level = 0)

Source from the content-addressed store, hash-verified

1226// ColorBox类(从main.js复制)
1227class ColorBox {
1228 constructor(pixels, level = 0) {
1229 this.pixels = pixels;
1230 this.level = level;
1231 this.computeMinMax();
1232 }
1233
1234 computeMinMax() {
1235 let minR = 255, minG = 255, minB = 255, minA = 255;

Callers

nothing calls this directly

Calls 1

computeMinMaxMethod · 0.95

Tested by

no test coverage detected