Added colour, biomes, adjustable height, and changed graph code to use d3 more

This commit is contained in:
Evolvedexperiment 2020-05-16 09:12:25 +00:00
parent a21e7f5ea4
commit 9f54b1e3f0
5 changed files with 174 additions and 83 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() {