Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,15 @@ If you do not want to choose a preset manually, use the auto recommender. It ana
import {
ditherImage,
replaceColors,
spectra6Palette,
aitjcizeSpectra6Palette,
suggestCanvasProcessingOptions,
} from "epdoptimize";

const suggestion = suggestCanvasProcessingOptions(inputCanvas, spectra6Palette);
const suggestion = suggestCanvasProcessingOptions(inputCanvas, aitjcizeSpectra6Palette);

await ditherImage(inputCanvas, ditheredCanvas, {
...suggestion.ditherOptions,
palette: spectra6Palette,
palette: aitjcizeSpectra6Palette,
});

replaceColors(ditheredCanvas, deviceCanvas, aitjcizeSpectra6Palette);
Expand Down Expand Up @@ -214,7 +214,7 @@ const config = {
},
};

const palette = spectra6Palette;
const palette = aitjcizeSpectra6Palette;

await ditherImage(inputCanvas, ditheredCanvas, {
...config.ditherOptions,
Expand Down