diff --git a/dither4.js b/dither4.js index e487fdb..2654599 100644 --- a/dither4.js +++ b/dither4.js @@ -556,7 +556,7 @@ function decimate(input, palette, n) { if (i == pick) { return false; } - if (popularity[i] == 0) { + if (i > 0 && popularity[i] == 0) { return false; } return true; @@ -571,6 +571,10 @@ function decimate(input, palette, n) { console.log(`${delta}ms for line`); // Palette fits + if (decimated.length > 4) { + debugger; + } + console.log(decimated); return dither(decimated); }