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
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue