From 0662bb44f5dae9e5fa1babbb456a0521e684033a Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 30 Jun 2023 16:58:02 +0100 Subject: [PATCH] darken dithered osm images --- apps/openstmap/imagefilter.js | 4 ++-- apps/openstmap/test/index.html | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/openstmap/imagefilter.js b/apps/openstmap/imagefilter.js index 07ff1acc8d..aa976dc0fa 100644 --- a/apps/openstmap/imagefilter.js +++ b/apps/openstmap/imagefilter.js @@ -8,7 +8,7 @@ Stick this in a file so we can function imageFilterFor3BPP(srcData, dstData, options) { options = options || {}; if (options.colLo === undefined) - options.colLo = 115; // when adding contrast/saturation, this is the max saturaton we add + options.colLo = 140; // when adding contrast/saturation, this is the max saturaton we add if (options.colHi === undefined) options.colHi = 250; if (options.sharpen === undefined) @@ -103,4 +103,4 @@ function imageFilterFor3BPP(srcData, dstData, options) { idx+=4; } } -} \ No newline at end of file +} diff --git a/apps/openstmap/test/index.html b/apps/openstmap/test/index.html index 654bd0d218..f17761b9c5 100644 --- a/apps/openstmap/test/index.html +++ b/apps/openstmap/test/index.html @@ -17,7 +17,7 @@ Final dither (Bangle.js preview)
Sharpen Line Dither
- Lo threshold
+ Lo threshold
Hi threshold
@@ -104,8 +104,8 @@ } document.getElementById("getmap").addEventListener("click", update); - document.getElementById("slider_lo").addEventListener("mouseup",update); - document.getElementById("slider_hi").addEventListener("mouseup",update); + document.getElementById("slider_lo").addEventListener("change",update); + document.getElementById("slider_hi").addEventListener("change",update); document.getElementById("finaldither").addEventListener("click",update); document.getElementById("sharpen").addEventListener("click",update); document.getElementById("dither").addEventListener("click",update);