Files

53 lines
1.2 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/webgpu.svg" />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
rel="stylesheet"
/>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Whatever WebGPU</title>
</head>
<body>
<div id="app">
<div id="canvas-container">
<canvas id="canvas" width="1024" height="1024"></canvas>
<div id="overlay">
<span id="fps">FPS: --</span>
</div>
</div>
<div id="controls-panel">
<h2>Controls</h2>
<label>
Simulation interval
<input
type="range"
id="compute-interval-slider"
min="1"
max="1000"
value="100"
/>
<div><span id="compute-interval-value">100</span> ms</div>
</label>
<div>
<label for="grid-size-slider">Grid Size</label>
<input
type="range"
id="grid-size-slider"
min="16"
max="512"
step="16"
value="64"
/>
<span id="grid-size-value">64</span>
</div>
<button id="reset-button">Reset Grid</button>
</div>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>