(pixels)
| 462 | // Re-importing the Median Cut logic from original main.js to ensure it works |
| 463 | class ColorBox { |
| 464 | constructor(pixels) { |
| 465 | this.pixels = pixels; |
| 466 | this.computeMinMax(); |
| 467 | } |
| 468 | computeMinMax() { |
| 469 | let min = [255,255,255,255], max = [0,0,0,0]; |
| 470 | for (const p of this.pixels) { |
nothing calls this directly
no test coverage detected