Current Version(without the save changes)

This commit is contained in:
StempunkDev 2023-07-28 15:39:34 +02:00
parent 0936a03c60
commit 104fd9b8d5
5 changed files with 14 additions and 17 deletions

View file

@ -111,8 +111,6 @@ function editWorld() {
document.getElementById("temperatureNorthPoleF").innerHTML = rn((tNorthPole * 9) / 5 + 32);
const tSouthPole = +document.getElementById("temperatureSouthPoleOutput").value;
document.getElementById("temperatureSouthPoleF").innerHTML = rn((tSouthPole * 9) / 5 + 32);
//Update Settings to match the slider(there may be a better solution)
options.SouthPoleTemperature = +tSouthPole;
globe.selectAll(".tempGradient90").attr("stop-color", clr(1 - (tNorthPole - tMin) / (tMax - tMin)));
globe.selectAll(".tempGradient60").attr("stop-color", clr(1 - (tEq - ((tEq - tNorthPole) * 2) / 3 - tMin) / (tMax - tMin)));
globe.selectAll(".tempGradient30").attr("stop-color", clr(1 - (tEq - ((tEq - tNorthPole) * 1) / 3 - tMin) / (tMax - tMin)));