mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
Added colour, biomes, adjustable height, and changed graph code to use d3 more
This commit is contained in:
parent
a21e7f5ea4
commit
9f54b1e3f0
5 changed files with 174 additions and 83 deletions
|
|
@ -47,7 +47,7 @@ function editRoute(onClick) {
|
|||
|
||||
function drawControlPoints(node) {
|
||||
const l = node.getTotalLength();
|
||||
const increment = l / Math.ceil(l / 8);
|
||||
const increment = l / Math.ceil(l / 4);
|
||||
for (let i=0; i <= l; i += increment) {addControlPoint(node.getPointAtLength(i));}
|
||||
routeLength.innerHTML = rn(l * distanceScaleInput.value) + " " + distanceUnitInput.value;
|
||||
}
|
||||
|
|
@ -110,7 +110,7 @@ function editRoute(onClick) {
|
|||
|
||||
function showElevationProfile() {
|
||||
modules.elevation = true;
|
||||
showEPForRoute(node);
|
||||
showEPForRoute(elSelected.node());
|
||||
}
|
||||
|
||||
function showGroupSection() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue