Give credit, add license file
This commit is contained in:
parent
95612a0682
commit
661fc670c1
13
LICENSE.md
Normal file
13
LICENSE.md
Normal file
@ -0,0 +1,13 @@
|
||||
# License
|
||||
|
||||
Minetest Biome Point Visualizer is Copyright by (c) Wuzzy, 2023 and is released under the MIT License.
|
||||
Javascript-Voronoi is Copyright (c) by Raymond Hill, 2010-2013 and is released under the MIT License.
|
||||
|
||||
## The MIT License
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
<
|
115
dark_style.css
Normal file
115
dark_style.css
Normal file
@ -0,0 +1,115 @@
|
||||
/*
|
||||
Style sheet for the Minetest Biome Point Visualizer.
|
||||
|
||||
License: MIT License
|
||||
*/
|
||||
|
||||
a {
|
||||
color: lightblue;
|
||||
}
|
||||
canvas {
|
||||
border: 3px solid #b0b0b0;
|
||||
}
|
||||
body {
|
||||
background-color: #303030;
|
||||
color: white;
|
||||
font-family: sans-serif;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
button, select, input {
|
||||
background-color: #303030;
|
||||
color: white;
|
||||
border-color: #ffffff;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
}
|
||||
input:invalid {
|
||||
background-color: #cf3030;
|
||||
color: black;
|
||||
}
|
||||
input:disabled {
|
||||
background-color: #101010;
|
||||
color: #404040;
|
||||
border-color: #606060;
|
||||
}
|
||||
input {
|
||||
margin-top: 0.2em;
|
||||
margin-bottom: 0.2em;
|
||||
padding: 0.4em;
|
||||
}
|
||||
select {
|
||||
width: 20em;
|
||||
}
|
||||
button:active {
|
||||
background-color: white;
|
||||
border-color: #808080;
|
||||
color: black;
|
||||
}
|
||||
#biomeButtonContainer {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
.contentContainer {
|
||||
margin: 1em;
|
||||
}
|
||||
hr {
|
||||
margin-top: 1.5em;
|
||||
margin-bottom: 1.5em;
|
||||
border-width: 3px;
|
||||
border-color: #a0a0a0;
|
||||
border-style: solid;
|
||||
}
|
||||
.borderedSection {
|
||||
border-color: #606060;
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
padding: 0.5em;
|
||||
margin-top: 0em;
|
||||
}
|
||||
.configFrame {
|
||||
border-color: #606060;
|
||||
border-width: 0px 2px 2px 2px;
|
||||
border-style: solid;
|
||||
padding: 0.5em;
|
||||
margin-top: 0em;
|
||||
}
|
||||
h1 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.3em;
|
||||
background-color: #4040bf;
|
||||
color: white;
|
||||
padding: 0.5em;
|
||||
}
|
||||
h2 {
|
||||
background-color: #6060df80;
|
||||
color: white;
|
||||
padding-left: 0.4em;
|
||||
padding-top: 0.1em;
|
||||
padding-bottom: 0.1em;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
h2.configHeader {
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
h3 {
|
||||
background-color: #8080df20;
|
||||
color: white;
|
||||
padding-left: 0.3em;
|
||||
padding-top: 0.1em;
|
||||
padding-bottom: 0.1em;
|
||||
margin-top: 0.2em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
.statAltitude {
|
||||
font-weight: bold;
|
||||
color: #ffff00;
|
||||
}
|
||||
.statHeat{
|
||||
font-weight: bold;
|
||||
color: #eb4737;
|
||||
}
|
||||
.statHumidity{
|
||||
font-weight: bold;
|
||||
color: #2d8af0;
|
||||
}
|
130
index.html
130
index.html
@ -3,122 +3,23 @@
|
||||
<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>Minetest Biome Point Visualizer</title>
|
||||
<style>
|
||||
canvas {
|
||||
border: 3px solid #b0b0b0;
|
||||
}
|
||||
body {
|
||||
background-color: #303030;
|
||||
color: white;
|
||||
font-family: sans-serif;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
button, select, input {
|
||||
background-color: #303030;
|
||||
color: white;
|
||||
border-color: #ffffff;
|
||||
border-style: solid;
|
||||
border-width: 1px;
|
||||
}
|
||||
input:invalid {
|
||||
background-color: #cf3030;
|
||||
color: black;
|
||||
}
|
||||
input:disabled {
|
||||
background-color: #101010;
|
||||
color: #404040;
|
||||
border-color: #606060;
|
||||
}
|
||||
input {
|
||||
margin-top: 0.2em;
|
||||
margin-bottom: 0.2em;
|
||||
padding: 0.4em;
|
||||
}
|
||||
select {
|
||||
width: 20em;
|
||||
}
|
||||
button:active {
|
||||
background-color: white;
|
||||
border-color: #808080;
|
||||
color: black;
|
||||
}
|
||||
#biomeButtonDiv {
|
||||
margin-top: 0.5em;
|
||||
}
|
||||
#mainContentDiv {
|
||||
margin: 1em;
|
||||
}
|
||||
.borderedSection {
|
||||
border-color: #606060;
|
||||
border-width: 2px;
|
||||
border-style: solid;
|
||||
padding: 0.5em;
|
||||
margin-top: 0em;
|
||||
}
|
||||
.configFrame {
|
||||
border-color: #606060;
|
||||
border-width: 0px 2px 2px 2px;
|
||||
border-style: solid;
|
||||
padding: 0.5em;
|
||||
margin-top: 0em;
|
||||
}
|
||||
h1 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.3em;
|
||||
background-color: #4040bf;
|
||||
color: white;
|
||||
padding: 0.5em;
|
||||
}
|
||||
h2 {
|
||||
background-color: #6060df80;
|
||||
color: white;
|
||||
padding-left: 0.4em;
|
||||
padding-top: 0.1em;
|
||||
padding-bottom: 0.1em;
|
||||
margin-top: 1em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
h2.configHeader {
|
||||
margin-bottom: 0em;
|
||||
}
|
||||
h3 {
|
||||
background-color: #8080df20;
|
||||
color: white;
|
||||
padding-left: 0.3em;
|
||||
padding-top: 0.1em;
|
||||
padding-bottom: 0.1em;
|
||||
margin-top: 0.2em;
|
||||
margin-bottom: 0.2em;
|
||||
}
|
||||
.statAltitude {
|
||||
font-weight: bold;
|
||||
color: #ffff00;
|
||||
}
|
||||
.statHeat{
|
||||
font-weight: bold;
|
||||
color: #eb4737;
|
||||
}
|
||||
.statHumidity{
|
||||
font-weight: bold;
|
||||
color: #2d8af0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<!-- Voronoi diagram API -->
|
||||
<!-- Include Voronoi diagram API -->
|
||||
<script src="./rhill-voronoi-core.js"></script>
|
||||
</head>
|
||||
|
||||
|
||||
<body>
|
||||
<h1>Minetest Biome Point Visualizer</h1>
|
||||
<div id="mainContentDiv">
|
||||
<div id="canvasDiv">
|
||||
<!-- TODO: Add proper canvas browser fallback by listing the voronoi points -->
|
||||
<div id="mainContentContainer" class="contentContainer">
|
||||
<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.
|
||||
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="diagramInfoDiv" class="borderedSection">
|
||||
<div id="diagramInfoContainer" class="borderedSection">
|
||||
<span id="errorMessage" hidden></span>
|
||||
<span id="altitudeDisplay"></span>
|
||||
<br>
|
||||
@ -129,15 +30,15 @@ A voronoi diagram is supposed to be here but for some reason it cannot be displa
|
||||
</div>
|
||||
<div id="configFrame">
|
||||
<h2 class="configHeader">Biome configuration</h2>
|
||||
<div id="biomeConfigDiv" class="configFrame">
|
||||
<div id="biomeConfigContainer" class="configFrame">
|
||||
<form id="biomeForm">
|
||||
<div id="biomeSelectorDiv">
|
||||
<div id="biomeSelectorContainer">
|
||||
<h3>Biome list</h3>
|
||||
<label for="biomeSelector">Biomes:<br>
|
||||
<select id="biomeSelector" name="biomeList" size="8"></select>
|
||||
</label>
|
||||
<br>
|
||||
<div id="biomeButtonDiv">
|
||||
<div id="biomeButtonContainer">
|
||||
<button id="addBiomeButton" type="button">Add</button>
|
||||
<button id="removeBiomeButton" type="button">Remove</button>
|
||||
</div>
|
||||
@ -162,7 +63,7 @@ A voronoi diagram is supposed to be here but for some reason it cannot be displa
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div id="viewConfigDiv">
|
||||
<div id="viewConfigContainer">
|
||||
<h2 class="configHeader">Diagram view settings</h2>
|
||||
<div class="configFrame">
|
||||
<form id="viewForm">
|
||||
@ -185,7 +86,7 @@ A voronoi diagram is supposed to be here but for some reason it cannot be displa
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div id="noiseConfigDiv">
|
||||
<div id="noiseConfigContainer">
|
||||
<h2 class="configHeader">Noise parameters</h2>
|
||||
<div class="configFrame">
|
||||
<form id="noiseForm">
|
||||
@ -223,5 +124,10 @@ A voronoi diagram is supposed to be here but for some reason it cannot be displa
|
||||
</div>
|
||||
</div>
|
||||
<script src="./biome-ui.js"></script>
|
||||
<hr>
|
||||
<div class="contentContainer">
|
||||
<!-- footer -->
|
||||
<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>
|
||||
|
26
license.html
Normal file
26
license.html
Normal file
@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<link rel="icon" href="./favicon.png">
|
||||
<title>License of the Minetest Biome Point Visualizer</title>
|
||||
<link rel="stylesheet" href="./dark_style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>License of the Minetest Biome Point Visualizer</h1>
|
||||
<div id="mainContentContainer" class="contentContainer">
|
||||
<p><a href="./index.html">Back to the main program</a></p>
|
||||
<p>The Minetest Biome Point Visualizer was created by Wuzzy in 2023. It uses <a href="https://github.com/gorhill/Javascript-Voronoi">Javascript-Voronoi</a> by Raymon Hill, Copyright (c) 2010-2013.</p>
|
||||
|
||||
<p>Both programs (which includes associated files, like the manual, stylesheet, favicon etc.) are free software, released under the MIT License, written below.</p>
|
||||
|
||||
<h2>The MIT License</h2>
|
||||
<p>Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:</p>
|
||||
|
||||
<p>The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.</p>
|
||||
|
||||
<p>THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user