Added colour and biomes to elevation profile

This commit is contained in:
Evolvedexperiment 2020-05-10 19:35:15 +00:00
parent 6dd1e22e93
commit 418d364259
3 changed files with 57 additions and 18 deletions

View file

@ -55,7 +55,7 @@ function editRiver(id) {
function drawControlPoints(node) {
const l = node.getTotalLength() / 2;
const segments = Math.ceil(l / 8);
const segments = Math.ceil(l / 4);
const increment = rn(l / segments * 1e5);
for (let i=increment*segments, c=i; i >= 0; i -= increment, c += increment) {
const p1 = node.getPointAtLength(i / 1e5);
@ -183,7 +183,7 @@ function editRiver(id) {
function showElevationProfile() {
modules.elevation = true;
showEPForRiver(node);
showEPForRiver(elSelected.node());
}
function showRiverWidth() {