From b2a926083a0584627682cff5e48472698a1cc1b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Vieira?= Date: Wed, 8 Jan 2025 23:09:37 +0000 Subject: [PATCH] Fix: Swapped hue and sat values from mired table Fixes: #125 --- utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils.js b/utils.js index 92edccf..0c13529 100644 --- a/utils.js +++ b/utils.js @@ -451,7 +451,7 @@ const colorFromTemperature = (mired) => { ]); const temperature = Math.round(Math.min(Math.max(mired, 100), 500)); - const [hue, sat] = lookupTable.get(temperature); + const [sat, hue] = lookupTable.get(temperature); return { hue: Math.round(hue), sat: Math.round(sat) }; };