update palette on selection
This commit is contained in:
parent
4bd896f05a
commit
69a3b482be
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue