mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 12:01:23 +01:00
Added colour and biomes to elevation profile
This commit is contained in:
parent
6dd1e22e93
commit
418d364259
3 changed files with 57 additions and 18 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