From 650f8312fcddcaed071779a03a57a4e54f3a548d Mon Sep 17 00:00:00 2001 From: Kei Tsuchiya Date: Sun, 29 Nov 2020 16:57:45 +0900 Subject: [PATCH] fix color mapping logic --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9d3c378..175fd8a 100644 --- a/README.md +++ b/README.md @@ -386,7 +386,7 @@ for (cc in gdpData) hex = Math.round(startColor[i] + (endColor[i] - startColor[i]) - * (gdpData[cc] / (max - min))).toString(16); + * ((gdpData[cc] - min) / (max - min))).toString(16); if (hex.length == 1) {