Skip to content

Commit

Permalink
Fix: Swapped hue and sat values from mired table
Browse files Browse the repository at this point in the history
Fixes: #125
  • Loading branch information
vieira committed Jan 9, 2025
1 parent f9b3587 commit b2a9260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) };
};

Expand Down

0 comments on commit b2a9260

Please sign in to comment.