140 lines
5.0 KiB
HTML
140 lines
5.0 KiB
HTML
<!DOCTYPE html>
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||
<link rel="icon" href="./favicon.png">
|
||
<link rel="stylesheet" href="./dark_style.css">
|
||
<title>MiBPoV—Minetest Biome Point Visualizer</title>
|
||
</style>
|
||
<!-- Include Voronoi diagram API -->
|
||
<script src="./rhill-voronoi-core.js"></script>
|
||
</head>
|
||
|
||
|
||
<body>
|
||
<h1>MiBPoV—Minetest Biome Point Visualizer</h1>
|
||
<div id="mainContentContainer" class="contentContainer">
|
||
<noscript>
|
||
<div class="borderedWarning">
|
||
ERROR: This tool requires JavaScript to work, but JavaScript is disabled in your browser. See the <a href="./manual.html">manual</a> to learn what this thing can do.
|
||
</div>
|
||
</noscript>
|
||
<div id="canvasContainer">
|
||
<canvas id="voronoiCanvas" width="500" height="500">
|
||
A Voronoi diagram is supposed to be here but for some reason it cannot be displayed. This tool is useless without this functionality.
|
||
</canvas>
|
||
</div>
|
||
<div id="diagramInfoContainer" class="borderedSection">
|
||
<span id="errorMessage" hidden></span>
|
||
<span id="altitudeDisplay"></span>
|
||
<br>
|
||
<span id="rangeDisplay"> </span>
|
||
<br>
|
||
<span id="coordinateDisplay"> </span>
|
||
<br>
|
||
</div>
|
||
<div>
|
||
<h2 class="configHeader"><span class="collapser" id="biomeConfigHeaderLink">▼</span> Biome configuration</h2>
|
||
<div id="biomeConfigContainer" class="configFrame">
|
||
<form id="biomeForm">
|
||
<div id="biomeSelectorContainer">
|
||
<h3>Biome list</h3>
|
||
<label for="biomeSelector">Biomes:<br>
|
||
<select id="biomeSelector" name="biomeList" size="8"></select>
|
||
</label>
|
||
<br>
|
||
<div id="biomeButtonContainer">
|
||
<button id="addBiomeButton" type="button">Add</button>
|
||
<button id="removeBiomeButton" type="button">Remove</button>
|
||
</div>
|
||
</div>
|
||
<div id="biomeEditElements">
|
||
<h3>Selected biome</h3>
|
||
<label for="inputHeat">Heat:
|
||
<input id="inputHeat" type="number" value="50" step="1">
|
||
</label>
|
||
<label for="inputHumidity">Humidity:
|
||
<input id="inputHumidity" type="number" value="50" step="1">
|
||
</label>
|
||
|
||
<br>
|
||
|
||
<label for="inputMinY">Min. Y:
|
||
<input id="inputMinY" type="number" value="-31000" step="1">
|
||
</label>
|
||
<label for="inputMaxY">Max. Y:
|
||
<input id="inputMaxY" type="number" value="31000" step="1">
|
||
</label>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<div>
|
||
<h2 class="configHeader"><span class="collapser" id="viewConfigHeaderLink">▼</span> Diagram view settings</h2>
|
||
<div id="viewConfigContainer" class="configFrame">
|
||
<form id="viewForm">
|
||
<label for="inputViewY">Altitude:</label>
|
||
<input id="inputViewY" type="number" value="0" step="1">
|
||
|
||
<br>
|
||
|
||
<input id="inputCheckboxPoints" type="checkbox" checked>
|
||
<label for="inputCheckboxPoints">Show points</label>
|
||
|
||
<input id="inputCheckboxNames" type="checkbox" checked>
|
||
<label for="inputCheckboxNames">Show names</label>
|
||
|
||
<input id="inputCheckboxGrid" type="checkbox" checked>
|
||
<label for="inputCheckboxGrid">Show grid</label>
|
||
|
||
<input id="inputCheckboxCellColors" type="checkbox" checked>
|
||
<label for="inputCheckboxCellColors">Colorize cells</label>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
<div>
|
||
<h2 class="configHeader"><span class="collapser" id="noiseConfigHeaderLink">▼</span> Noise parameters (experimental)</h2>
|
||
<div class="configFrame" id="noiseConfigContainer">
|
||
<form id="noiseForm">
|
||
<h3>Heat (<code>mg_biome_np_heat</code>)</h3>
|
||
<label for="inputNoiseHeatOffset">Offset:</label>
|
||
<input id="inputNoiseHeatOffset" type="number" value="50">
|
||
|
||
<label for="inputNoiseHeatScale">Scale:</label>
|
||
<input id="inputNoiseHeatScale" type="number" value="50">
|
||
|
||
<label for="inputNoiseHeatOctaves">Octaves:</label>
|
||
<input id="inputNoiseHeatOctaves" type="number" value="3" step="1" min="1">
|
||
|
||
<label for="inputNoiseHeatPersistence">Persistence:</label>
|
||
<input id="inputNoiseHeatPersistence" type="number" value="0.5" step=0.1>
|
||
|
||
<h3>Humidity (<code>mg_biome_np_humidity</code>)</h3>
|
||
<label for="inputNoiseHumidityOffset">Offset:</label>
|
||
<input id="inputNoiseHumidityOffset" type="number" value="50">
|
||
|
||
<label for="inputNoiseHumidityScale">Scale:</label>
|
||
<input id="inputNoiseHumidityScale" type="number" value="50">
|
||
|
||
<label for="inputNoiseHumidityOctaves">Octaves:</label>
|
||
<input id="inputNoiseHumidityOctaves" type="number" value="3" step="1" min="1">
|
||
|
||
<label for="inputNoiseHumidityPersistence">Persistence:</label>
|
||
<input id="inputNoiseHumidityPersistence" type="number" value="0.5" step=0.1>
|
||
|
||
<h3>Reset</h3>
|
||
<button id="inputNoiseReset" type="button">Reset noise parameters</button>
|
||
</form>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script src="./biome-ui.js"></script>
|
||
<hr>
|
||
<div class="contentContainer">
|
||
<!-- footer -->
|
||
<p>Need help? Read the <a title="Manual for the Minetest Biome Point Visualizer" href="./manual.html">manual</a>.</p>
|
||
<p>This is free software released under the <a title="MIT License" href="./license.html">MIT License</a>. Code by <a title="Wuzzy’s Personal Website" href="https://wuzzy.codeberg.page/">Wuzzy</a>. Uses <a title="Javascript-Voronoi Git repository webpage" href="https://github.com/gorhill/Javascript-Voronoi/">Javascript-Voronoi</a> by <a title="Raymond Hill’s personal website" href="http://www.raymondhill.net/">Raymond Hill</a>.</p>
|
||
</div>
|
||
</body>
|
||
</html>
|