diff --git a/dither-image.js b/dither-image.js index 6999624..70292af 100644 --- a/dither-image.js +++ b/dither-image.js @@ -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); /*