Generating panels as an svg

This commit is contained in:
2026-05-02 21:41:22 +01:00
parent db8617519b
commit 59a7c1c12b
4 changed files with 205 additions and 0 deletions

22
index.html Normal file
View File

@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html>
<head>
<title>Parachute Panel Generator</title>
</head>
<body>
<h1>Parachute Panel Generator</h1>
<p>Generate the SVG outline of a parachute panel for an elliptical parachute. Find out more <a>here</a>.</p>
<br>
<label for="h">Height of parachute (h):</label>
<input type="number" id="h" min="0"/><br>
<label for="r">Radius of parachute (r):</label>
<input type="number" id="r" min="0"/><br>
<label for="rs">Radius of spill hole (r<sub>s</sub>): (leave blank to use 0.05r)</label>
<input type="number" id="rs" /><br>
<label for="np">Number of panels (n<sub>p</sub>): </label>
<input type="number" id="np" min="3" ><br>
<button onclick="generatePanel()">Generate!</button>
<div id="output"></div>
<script src="index.js" lang="js"></script>
</body>
</html>