mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 01:41:22 +01:00
Resample transformations (#782)
* Rescale style option for submaps. * namespace for submap ui. * Keep visual change for towns * rotation and shift for resample * Shift first - rotate later * submap mirror transformation, applicative style Co-authored-by: Mészáros Gergely <monk@geotronic.hu>
This commit is contained in:
parent
53dc9a452d
commit
e9b4a7b03a
3 changed files with 87 additions and 18 deletions
1
main.js
1
main.js
|
|
@ -1413,6 +1413,7 @@ function reMarkFeatures() {
|
|||
cells.harbor[i] = water.length;
|
||||
};
|
||||
|
||||
if (!cells.i.length) return; // no cells -> there is nothing to do
|
||||
for (let i = 1, queue = [0]; queue[0] !== -1; i++) {
|
||||
const start = queue[0]; // first cell
|
||||
cells.f[start] = i; // assign feature number
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue