-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
77 lines (69 loc) · 3.31 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Particle Garden</title>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@300;700&family=Crimson+Text:wght@400;700&family=Roboto+Mono:wght@400&family=Long+Cang&display=swap"
rel="stylesheet"
/>
<link href="css/style.css" rel="stylesheet" />
<script src="https://unpkg.com/mathjs@7.5.1/dist/math.min.js"></script>
</head>
<body onload="main()">
<canvas id="webgl" width="800" height="400" style="position: absolute">
Please use a browser that supports "canvas"
</canvas>
<p class="title">Particle Garden</p>
<!-- span id ="center">·</span -->
<div class="buttons">
<div class="dropdown">
<button
onclick="showSolverOptions()"
class="dropbtn"
id="selectedSolver"
></button>
<div id="myDropdown" class="dropdown-content"></div>
</div>
<button id="showGrid" onclick="gridDisplay()">Hide Grid</button>
<button id="showSphere" onclick="sphereDisplay()">
Show Sphere
</button>
<button id="topView" onclick="changeView()">Top View</button>
<button id="reset" onclick="reset()">Reset</button>
</div>
<div class="general_info">
<p class="instructions">
<strong>Mouse Drag</strong> to Create Wind
</p>
<p class="instructions"><strong>Mouse Scroll</strong> to Zoom</p>
<p class="instructions">
Press <strong>Shift</strong> to Change Viewing Angles
</p>
<p class="instructions">Press <strong>WSAD</strong> to Move</p>
<p class="instructions">
Press <strong>QE</strong> to Lift Up/Down
</p>
<p class="instructions">
Press <strong>1/2/3</strong> to Pause, Control Time, or Resume
</p>
</div>
<script src="lib/webgl-utils.js" type="text/javascript"></script>
<script src="lib/webgl-debug.js" type="text/javascript"></script>
<script src="lib/cuon-utils.js" type="text/javascript"></script>
<script src="lib/cuon-matrix-quat03.js" type="text/javascript"></script>
<script src="lib/dat-gui.js" type="text/javascript"></script>
<script src="src/animate.js" type="text/javascript"></script>
<script src="src/htmlcallBacks.js" type="text/javascript"></script>
<script src="src/draw.js" type="text/javascript"></script>
<script src="src/VBOinfo.js" type="text/javascript"></script>
<script src="src/main.js" type="text/javascript"></script>
<script src="src/initVBOwithShaders.js" type="text/javascript"></script>
<script src="src/initVBOparticle.js" type="text/javascript"></script>
<script src="src/CLimit.js" type="text/javascript"></script>
<script src="src/CForcer.js" type="text/javascript"></script>
<script src="mat/materials_Ayerdi.js" type="text/javascript"></script>
<script src="mat/lights-JT.js" type="text/javascript"></script>
</body>
</html>