From e9cb702c893eac3560b4a363f33cbd44ba746f4d Mon Sep 17 00:00:00 2001 From: Jasper van Loenen Date: Mon, 19 Jan 2026 17:02:13 +0100 Subject: [PATCH] Fix typo in Floyd-Steinberg comment --- js/dithering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dithering.js b/js/dithering.js index 084bbc7..97493ba 100644 --- a/js/dithering.js +++ b/js/dithering.js @@ -53,7 +53,7 @@ function dithering(ctx, width, height, threshold, typeIndex) { const map = Math.floor((imageData.data[currentPixel] + bayerThresholdMap[x % 4][y % 4]) / 2); imageData.data[currentPixel] = (map < threshold) ? 0 : 255; } else if (type === 'floydsteinberg') { - // Floyda€"Steinberg dithering algorithm + // Floyd-Steinberg dithering algorithm newPixel = imageData.data[currentPixel] < 129 ? 0 : 255; err = Math.floor((imageData.data[currentPixel] - newPixel) / 16); imageData.data[currentPixel] = newPixel;