From 98c63e66f0e27c6f0329df913dc0be101a6f0676 Mon Sep 17 00:00:00 2001 From: javl Date: Tue, 2 May 2023 16:08:57 +0200 Subject: [PATCH] fix dithering not being called --- script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script.js b/script.js index 4520d80..332a1e7 100644 --- a/script.js +++ b/script.js @@ -245,7 +245,7 @@ const ConversionFunctions = { return outputString; }, }; -settings.ConversionFunction = ConversionFunctions.horizontal1bit; +settings.conversionFunction = ConversionFunctions.horizontal1bit; // An images collection with helper methods function Images() { @@ -458,7 +458,7 @@ function placeImage(_image) { ctx.restore(); // Make sure the image is black and white - console.log('dithering: ', dithering); + console.log(settings.conversionFunction); if (settings.conversionFunction === ConversionFunctions.horizontal1bit || settings.conversionFunction === ConversionFunctions.vertical1bit) { dithering(ctx, canvas.width, canvas.height, settings.ditheringThreshold, settings.ditheringMode);