Added 1k, 2k, and 5k option for number of points

This commit is contained in:
Evolvedexperiment 2021-03-03 17:00:37 +00:00
parent 667006db86
commit b2b46c4d39
4 changed files with 41 additions and 25 deletions

View file

@ -276,9 +276,14 @@ function copyMapURL() {
}
function changeCellsDensity(value) {
densityOutput.value = value * 10 + "K";
if (value > 5) densityOutput.style.color = "#b12117";
else if (value > 1) densityOutput.style.color = "#dfdf12";
switch (value) {
case 1 : densityOutput.value = "1K"; break;
case 2 : densityOutput.value = "2K"; break;
case 3 : densityOutput.value = "5K"; break;
default: densityOutput.value = (value-3) * 10 + "K";
}
if (value > 9) densityOutput.style.color = "#b12117";
else if (value > 4) densityOutput.style.color = "#dfdf12";
else densityOutput.style.color = "#038603";
}