This commit is contained in:
Azgaar 2020-12-30 12:09:40 +03:00
parent 3a55ed1c08
commit ffc3c980f7

View file

@ -165,7 +165,7 @@ function drawHeightmap() {
paths[h] += round(lineGen(points)); paths[h] += round(lineGen(points));
} }
terrs.append("rect").attr("x", 0).attr("y", 0).attr("width", "100%").attr("height", "100%").attr("fill", scheme(.8)); // draw base layer terrs.append("rect").attr("x", 0).attr("y", 0).attr("width", graphWidth).attr("height", graphHeight).attr("fill", scheme(.8)); // draw base layer
for (const i of d3.range(20, 101)) { for (const i of d3.range(20, 101)) {
if (paths[i].length < 10) continue; if (paths[i].length < 10) continue;
const color = getColor(i, scheme); const color = getColor(i, scheme);