This commit is contained in:
Brooke Vibber 2022-11-20 20:16:13 -08:00
parent 3e266b4f33
commit dcf5cd2edd

View file

@ -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);
}