This commit is contained in:
Brooke Vibber 2023-03-18 22:34:39 -07:00
parent b74036ef8d
commit 1d77bb3b22

View file

@ -495,7 +495,7 @@ function decimate(input, palette, n, inputError) {
//decimated = [0, 0x36, 0x0f, 0x86];
let reserved = [0]; // black
//reserved = [0, 15]; // black, white
reserved = [0, 15]; // black, white
//reserved = [0, 5, 10, 15]; // grayscale
//reserved = [0, 0x48, 0x78, 15]; // vaporwave
//reserved = [0, 0x3c, 0x78, 15]; // red/blue/white
@ -545,7 +545,7 @@ function decimate(input, palette, n, inputError) {
break;
}
}
decimated.sort((a, b) => a - b);
decimated = decimated.sort((a, b) => a - b);
/*