diff --git a/script.js b/script.js index 401a089..8d5e4b1 100644 --- a/script.js +++ b/script.js @@ -8,6 +8,7 @@ import init, { output, set_brightness, set_dither, + set_palette, set_room_name, } from './pkg/pixsy.js'; @@ -171,6 +172,11 @@ async function run() { buttonImageProceed.addEventListener("click", handleImage); buttonImageProceed.addEventListener("touchend", handleImage); + selectPalette.addEventListener("change", () => { + set_palette(selectPalette.value); + loadPreview(); + }); + checkboxDither.addEventListener("change", () => { set_dither(checkboxDither.checked); loadPreview();