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.
This commit is contained in:
parent
d7dbee4c05
commit
12abef4076
8 changed files with 287 additions and 0 deletions
21
lang-trials/rust/index.html
Normal file
21
lang-trials/rust/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!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>
|
Loading…
Add table
Add a link
Reference in a new issue