dyna3/lang-trials/rust/index.html
Aaron Fenyes 12abef4076 Trial a Rust engine powering a Civet interface
Write a basic web app with a Rust engine, compiled to WebAssembly,
powering a Civet interface. Do linear algebra in the engine using
the `nalgebra` crate.
2024-07-28 21:10:04 -07:00

22 lines
688 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Lattice circle</title>
<script type="module" src="app.js"></script>
<link rel="stylesheet" type="text/css" href="app.css"/>
</head>
<body>
<canvas id="display" width=600, height=600></canvas>
<div id="data-panel">
<div>x</div>
<div>y</div>
<input type="number" id="data-input-0" value="-1"/>
<input type="number" id="data-input-1" value="0"/>
<input type="number" id="data-input-2" value="0"/>
<input type="number" id="data-input-3" value="-1"/>
<input type="number" id="data-input-4" value="1"/>
<input type="number" id="data-input-5" value="0"/>
</div>
</body>
</html>