-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (29 loc) · 1.48 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Sixtyfour&display=swap" rel="stylesheet">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap" rel="stylesheet">
</head>
<body style="background-color: rgb(99, 122, 159);">
<h1 style="font-family: Sixtyfour;">Wavy - A demo of emscripten using raylib</h1>
<p style="font-family: 'Roboto', sans-serif;">This is a visualisation of Lagrange polynomials with randomly generated (and changing) data values. It was coded in C++.</p>
<!-- Create the canvas that the C++ code will draw into -->
<div id="" style="overflow:scroll; height:1000px;">
<canvas id="canvas" oncontextmenu="event.preventDefault()"></canvas>
</div>
<!-- Allow the C++ to access the canvas element -->
<script type='text/javascript'>
var Module = {
canvas: (function() { return document.getElementById('canvas'); })()
};
</script>
<!-- Add the javascript glue code (index.js) as generated by Emscripten -->
<script src="./build/main.js"></script>
</body>
</html>