Skip to content

Commit 733b4df

Browse files
Adjust grayscale threshold
1 parent 0b23607 commit 733b4df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ window.addEventListener('resize', drawBadge);
262262

263263
// Add this function to convert image data to 2-bit black and white
264264
function convertTo2BitBW(imageData) {
265-
const threshold = 128;
265+
const threshold = 200;
266266
const newCanvas = document.createElement('canvas');
267267
newCanvas.width = imageData.width;
268268
newCanvas.height = imageData.height;

0 commit comments

Comments
 (0)