nice
This commit is contained in:
parent
3e266b4f33
commit
dcf5cd2edd
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue